<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-11 14:13:30 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>Git - gitprotocol pack</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#Miscellaneous">
                                Miscellaneous                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="4c176cc54ddb7f21b74a12bb476f02b6fdf0896d18f5b570773d246b387a7fe9/cd" data-source="gitprotocol-pack" onmousemove="i18n(this)">gitprotocol-pack</span></h1> <h2 class="text-body-emphasis"  id="_name"><span data-i18n="dcd1d5223f73b3a965c07e3ff5dbee3eedcfedb806686a05b9b3868a2c3d6d50/3a" data-source="Name" onmousemove="i18n(this)">Name</span></h2> <div> <p><span data-i18n="d146306e0d4437e18a6027ed62dd92f402b5363290bb5bb43dac47090d661a9f/0b" data-source="gitprotocol-pack - How packs are transferred over-the-wire" onmousemove="i18n(this)">gitprotocol-pack &mdash; &Kcy;&acy;&kcy; &pcy;&acy;&kcy;&iecy;&tcy;&ycy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&yucy;&tcy;&scy;&yacy; &pcy;&ocy; &scy;&iecy;&tcy;&icy;</span></p> </div> <h2 class="text-body-emphasis"  id="_synopsis"><span data-i18n="8eb3755381519d7f0479d75446e56e20084834c0460d7ec94926932372ea6c47/0d" data-source="Synopsis" onmousemove="i18n(this)">Synopsis</span></h2> <div> <div> <pre class="hljs language-xml"><span class="hljs-tag">&lt;<span class="hljs-name">over-the-wire-protocol</span>&gt;</span></pre> </div> </div> <h2 class="text-body-emphasis"  id="_description"><span data-i18n="526e0087cc3f254d9f86f6c7d8e23d954c4dfda2b312efc29194ae8a860106ba/d3" data-source="Description" onmousemove="i18n(this)">Description</span></h2> <div> <p><span data-i18n="ae8ce296227f4dad101efe14f05add37049abda31b35593877017e7facac809a/4c" data-source="Git supports transferring data in packfiles over the ssh://, git://, http:// and file:// transports. There exist two sets of protocols, one for pushing data from a client to a server and another for fetching data from a server to a client. The three transports (ssh, git, file) use the same protocol to transfer data. http is documented in &lt;a href=&quot;gitprotocol-http&quot;&gt;gitprotocol-http[5]&lt;/a&gt;." onmousemove="i18n(this)">Git  &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&iecy;&tcy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&ucy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &vcy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&acy;&khcy; &pcy;&ocy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&acy;&mcy; ssh://, git://, http:// &icy; file://. &Scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &dcy;&vcy;&acy; &ncy;&acy;&bcy;&ocy;&rcy;&acy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&ocy;&vcy;: &ocy;&dcy;&icy;&ncy; &dcy;&lcy;&yacy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&icy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &ocy;&tcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&acy; &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;, &acy; &dcy;&rcy;&ucy;&gcy;&ocy;&jcy; &dcy;&lcy;&yacy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&icy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &scy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy; &ncy;&acy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;. &Tcy;&rcy;&icy; &tcy;&rcy;&acy;&ncy;&scy;&pcy;&ocy;&rcy;&tcy;&acy; (ssh, git, file) &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy; &ocy;&dcy;&icy;&ncy; &icy; &tcy;&ocy;&tcy; &zhcy;&iecy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy; &dcy;&lcy;&yacy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&icy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;. http &dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy; &vcy;  <a href="gitprotocol-http.html">gitprotocol-http[5]</a> .</span></p> <p><span data-i18n="39acf625d83c6d5ccb29d3b52de60d53af02c35bdc86a587634478d18fb7117a/bf" data-source="The processes invoked in the canonical Git implementation are &lt;code&gt;upload-pack&lt;/code&gt; on the server side and &lt;code&gt;fetch-pack&lt;/code&gt; on the client side for fetching data; then &lt;code&gt;receive-pack&lt;/code&gt; on the server and &lt;code&gt;send-pack&lt;/code&gt; on the client for pushing data. The protocol functions to have a server tell a client what is currently on the server, then for the two to negotiate the smallest amount of data to send in order to fully update one or the other." onmousemove="i18n(this)">&Pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ycy;, &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&mcy;&ycy;&iecy; &vcy; &kcy;&acy;&ncy;&ocy;&ncy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&jcy; &rcy;&iecy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy;  Git :  <code>upload-pack</code>  &ncy;&acy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&iecy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy; &icy;  <code>fetch-pack</code>  &ncy;&acy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&iecy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&acy; &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;; &zcy;&acy;&tcy;&iecy;&mcy;  <code>receive-pack</code>  &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&iecy; &icy;  <code>send-pack</code>  &ncy;&acy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&iecy; &dcy;&lcy;&yacy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&icy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;. &Fcy;&ucy;&ncy;&kcy;&tscy;&icy;&icy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&acy; &zcy;&acy;&kcy;&lcy;&yucy;&chcy;&acy;&yucy;&tcy;&scy;&yacy; &vcy; &tcy;&ocy;&mcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &scy;&ocy;&ocy;&bcy;&shchcy;&acy;&lcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ucy;, &chcy;&tcy;&ocy; &vcy; &dcy;&acy;&ncy;&ncy;&ycy;&jcy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&iecy;, &acy; &zcy;&acy;&tcy;&iecy;&mcy; &ocy;&bcy;&acy; &scy;&ocy;&gcy;&lcy;&acy;&scy;&ocy;&vcy;&ycy;&vcy;&acy;&lcy;&icy; &ncy;&acy;&icy;&mcy;&iecy;&ncy;&softcy;&shcy;&icy;&jcy; &ocy;&bcy;&hardcy;&iecy;&mcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &dcy;&lcy;&yacy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&icy;, &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&ocy;&lcy;&ncy;&ocy;&scy;&tcy;&softcy;&yucy; &ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy; &ocy;&dcy;&icy;&ncy; &icy;&lcy;&icy; &dcy;&rcy;&ucy;&gcy;&ocy;&jcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_pkt_line_format"><span data-i18n="acc1129e12b383c02b9c54a2eecb844f44edf6e5eb16724f23a46501b82e8f3c/73" data-source="Pkt-line format" onmousemove="i18n(this)">Pkt-line format</span></h2> <div> <p><span data-i18n="1d5fe4d71bbd5d3b12abacbd73ce52d6520348b62250f842794696133f2566a4/64" data-source="The descriptions below build on the pkt-line format described in &lt;a href=&quot;gitprotocol-common&quot;&gt;gitprotocol-common[5]&lt;/a&gt;. When the grammar indicates &lt;code&gt;PKT-LINE(...)&lt;/code&gt;, unless otherwise noted the usual pkt-line LF rules apply: the sender SHOULD include a LF, but the receiver MUST NOT complain if it is not present." onmousemove="i18n(this)">&Ocy;&pcy;&icy;&scy;&acy;&ncy;&icy;&yacy; &ncy;&icy;&zhcy;&iecy; &ocy;&scy;&ncy;&ocy;&vcy;&acy;&ncy;&ycy; &ncy;&acy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; pkt-line, &ocy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ocy;&mcy; &vcy;  <a href="gitprotocol-common.html">gitprotocol-common[5]</a> . &Kcy;&ocy;&gcy;&dcy;&acy; &vcy; &gcy;&rcy;&acy;&mcy;&mcy;&acy;&tcy;&icy;&kcy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ocy;  <code>PKT-LINE(...)</code> , &iecy;&scy;&lcy;&icy; &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ocy; &icy;&ncy;&ocy;&iecy;, &pcy;&rcy;&icy;&mcy;&iecy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &ocy;&bcy;&ycy;&chcy;&ncy;&ycy;&iecy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&acy; LF &dcy;&lcy;&yacy; pkt-&lcy;&icy;&ncy;&icy;&icy;: &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&iecy;&lcy;&softcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&tcy;&softcy; LF, &ncy;&ocy; &pcy;&ocy;&lcy;&ucy;&chcy;&acy;&tcy;&iecy;&lcy;&softcy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &zhcy;&acy;&lcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy; &ocy;&tcy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy;.</span></p> <p><span data-i18n="ca167522f7135090f3abecd578cf63e06387c298e36ea75c39679a9df8d5ec68/e6" data-source="An error packet is a special pkt-line that contains an error string." onmousemove="i18n(this)">&Pcy;&acy;&kcy;&iecy;&tcy; &ocy;&shcy;&icy;&bcy;&ocy;&kcy; &mdash; &ecy;&tcy;&ocy; &scy;&pcy;&iecy;&tscy;&icy;&acy;&lcy;&softcy;&ncy;&acy;&yacy; &scy;&tcy;&rcy;&ocy;&kcy;&acy; pkt, &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&shchcy;&acy;&yacy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy; &ocy;&shcy;&icy;&bcy;&kcy;&icy;.</span></p> <div> <div> <pre class="hljs language-ini">  <span class="hljs-attr">error-line</span>     =  PKT-LINE(<span class="hljs-string">&quot;ERR&quot;</span> SP explanation-text)</pre> </div> </div> <p><span data-i18n="74e030a887179594df33d1f9cdb79caf1cbe857c05356f1075f0a1962d5658e6/72" data-source="Throughout the protocol, where &lt;code&gt;PKT-LINE(...)&lt;/code&gt; is expected, an error packet MAY be sent. Once this packet is sent by a client or a server, the data transfer process defined in this protocol is terminated." onmousemove="i18n(this)">&Pcy;&ocy; &vcy;&scy;&iecy;&mcy;&ucy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&ucy;, &gcy;&dcy;&iecy; &ocy;&zhcy;&icy;&dcy;&acy;&iecy;&tcy;&scy;&yacy;  <code>PKT-LINE(...)</code> , &Mcy;&Ocy;&ZHcy;&IEcy;&Tcy; &bcy;&ycy;&tcy;&softcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy; &pcy;&acy;&kcy;&iecy;&tcy; &ocy;&shcy;&icy;&bcy;&kcy;&icy;. &Kcy;&acy;&kcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ecy;&tcy;&ocy;&tcy; &pcy;&acy;&kcy;&iecy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ocy;&mcy; &icy;&lcy;&icy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ocy;&mcy;, &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&icy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;, &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; &vcy; &ecy;&tcy;&ocy;&mcy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&iecy;, &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&acy;&iecy;&tcy;&scy;&yacy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_transports"><span data-i18n="7db2d5002ce05b25782f23d61ca005f2c4f7ead672137b616c3b55bc89d38c81/b4" data-source="Transports" onmousemove="i18n(this)">Transports</span></h2> <div> <p><span data-i18n="e31667b9ad4de4f79a3e66384fff6aef65ecb0254f9b8f3f14bfc5741567e162/01" data-source="There are three transports over which the packfile protocol is initiated. The Git transport is a simple, unauthenticated server that takes the command (almost always &lt;code&gt;upload-pack&lt;/code&gt;, though Git servers can be configured to be globally writable, in which &lt;code&gt;receive- pack&lt;/code&gt; initiation is also allowed) with which the client wishes to communicate and executes it and connects it to the requesting process." onmousemove="i18n(this)">&Scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &tcy;&rcy;&icy; &tcy;&rcy;&acy;&ncy;&scy;&pcy;&ocy;&rcy;&tcy;&acy;, &pcy;&ocy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&mcy; &icy;&ncy;&icy;&tscy;&icy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy; Packfile. &Tcy;&rcy;&acy;&ncy;&scy;&pcy;&ocy;&rcy;&tcy;  Git  &mdash; &ecy;&tcy;&ocy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy;&jcy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &bcy;&iecy;&zcy; &acy;&ucy;&tcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy; (&pcy;&ocy;&chcy;&tcy;&icy; &vcy;&scy;&iecy;&gcy;&dcy;&acy;  <code>upload-pack</code> , &khcy;&ocy;&tcy;&yacy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy;  Git  &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&iecy;&ncy;&ycy; &ncy;&acy; &gcy;&lcy;&ocy;&bcy;&acy;&lcy;&softcy;&ncy;&ucy;&yucy; &zcy;&acy;&pcy;&icy;&scy;&softcy;, &vcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&jcy; &tcy;&acy;&kcy;&zhcy;&iecy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&acy; &icy;&ncy;&icy;&tscy;&icy;&acy;&tscy;&icy;&yacy;  <code>receive- pack</code> ), &scy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&jcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &zhcy;&iecy;&lcy;&acy;&iecy;&tcy; &scy;&vcy;&yacy;&zcy;&acy;&tcy;&softcy;&scy;&yacy;, &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy; &iecy;&iecy; &icy; &pcy;&ocy;&dcy;&kcy;&lcy;&yucy;&chcy;&acy;&iecy;&tcy; &iecy;&iecy;. &kcy; &zcy;&acy;&pcy;&rcy;&acy;&shcy;&icy;&vcy;&acy;&yucy;&shchcy;&iecy;&mcy;&ucy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ucy;.</span></p> <p><span data-i18n="8e07b7dbd486f3ab1e41f2da97a9aba9f723cae21dcd380094afababd72d1c8d/46" data-source="In the SSH transport, the client just runs the &lt;code&gt;upload-pack&lt;/code&gt; or &lt;code&gt;receive-pack&lt;/code&gt; process on the server over the SSH protocol and then communicates with that invoked process over the SSH connection." onmousemove="i18n(this)">&Pcy;&rcy;&icy; &tcy;&rcy;&acy;&ncy;&scy;&pcy;&ocy;&rcy;&tcy;&icy;&rcy;&ocy;&vcy;&kcy;&iecy; SSH &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;  <code>upload-pack</code>  &icy;&lcy;&icy;  <code>receive-pack</code>  &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&iecy; &pcy;&ocy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&ucy; SSH, &acy; &zcy;&acy;&tcy;&iecy;&mcy; &vcy;&zcy;&acy;&icy;&mcy;&ocy;&dcy;&iecy;&jcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &scy; &ecy;&tcy;&icy;&mcy; &vcy;&ycy;&zcy;&vcy;&acy;&ncy;&ncy;&ycy;&mcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ocy;&mcy; &chcy;&iecy;&rcy;&iecy;&zcy; &scy;&ocy;&iecy;&dcy;&icy;&ncy;&iecy;&ncy;&icy;&iecy; SSH.</span></p> <p><span data-i18n="ddffced0870710ed07dc27d3a402e9079cdc23888fedadbcdc21198a4b725822/b3" data-source="The file:// transport runs the &lt;code&gt;upload-pack&lt;/code&gt; or &lt;code&gt;receive-pack&lt;/code&gt; process locally and communicates with it over a pipe." onmousemove="i18n(this)">&Tcy;&rcy;&acy;&ncy;&scy;&pcy;&ocy;&rcy;&tcy; file:// &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;  <code>upload-pack</code>  &icy;&lcy;&icy;  <code>receive-pack</code>  &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ocy; &icy; &vcy;&zcy;&acy;&icy;&mcy;&ocy;&dcy;&iecy;&jcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &scy; &ncy;&icy;&mcy; &chcy;&iecy;&rcy;&iecy;&zcy; &kcy;&acy;&ncy;&acy;&lcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_extra_parameters"><span data-i18n="dd235cb9a2d52f50273c02b01a29fb89fc61d9a5668b1b7545d1eb3a272b28c3/3d" data-source="Extra parameters" onmousemove="i18n(this)">Extra parameters</span></h2> <div> <p><span data-i18n="15af71efa4cb00a7dca1b4f420e3b868aa2a9a99421a56987f1ae97494dfaab3/12" data-source="The protocol provides a mechanism in which clients can send additional information in its first message to the server. These are called &amp;quot;Extra Parameters&amp;quot;, and are supported by the Git, SSH, and HTTP protocols." onmousemove="i18n(this)">&Pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &mcy;&iecy;&khcy;&acy;&ncy;&icy;&zcy;&mcy;, &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &mcy;&ocy;&gcy;&ucy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ucy;&yucy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy; &vcy; &scy;&vcy;&ocy;&iecy;&mcy; &pcy;&iecy;&rcy;&vcy;&ocy;&mcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&icy; &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;. &Ocy;&ncy;&icy; &ncy;&acy;&zcy;&ycy;&vcy;&acy;&yucy;&tcy;&scy;&yacy;  &quot;Extra Parameters&quot;  &icy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&acy;&mcy;&icy; Git, SSH &icy; HTTP.</span></p> <p><span data-i18n="11110527169a30c0b28012001f2d54d26414df9093dec8983b5269e6145cc0aa/26" data-source="Each Extra Parameter takes the form of &lt;code&gt;&amp;lt;key&amp;gt;=&amp;lt;value&amp;gt;&lt;/code&gt; or &lt;code&gt;&amp;lt;key&amp;gt;&lt;/code&gt;." onmousemove="i18n(this)">&Kcy;&acy;&zhcy;&dcy;&ycy;&jcy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&jcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &icy;&mcy;&iecy;&iecy;&tcy; &fcy;&ocy;&rcy;&mcy;&ucy;  <code>&lt;key&gt;=&lt;value&gt;</code>  &icy;&lcy;&icy;  <code>&lt;key&gt;</code> .</span></p> <p><span data-i18n="89099e7bc77ce3f38e3d16e03133e28ba096c5814a55694d48952cfe4768a693/57" data-source="Servers that receive any such Extra Parameters MUST ignore all unrecognized keys. Currently, the only Extra Parameter recognized is &amp;quot;version&amp;quot; with a value of &lt;code&gt;1&lt;/code&gt; or &lt;code&gt;2&lt;/code&gt;. See &lt;a href=&quot;gitprotocol-v2&quot;&gt;gitprotocol-v2[5]&lt;/a&gt; for more information on protocol version 2." onmousemove="i18n(this)">&Scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ycy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &pcy;&ocy;&lcy;&ucy;&chcy;&acy;&yucy;&tcy; &lcy;&yucy;&bcy;&ycy;&iecy; &tcy;&acy;&kcy;&icy;&iecy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&iecy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy;, &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &vcy;&scy;&iecy; &ncy;&iecy;&rcy;&acy;&scy;&pcy;&ocy;&zcy;&ncy;&acy;&ncy;&ncy;&ycy;&iecy; &kcy;&lcy;&yucy;&chcy;&icy;. &Vcy; &ncy;&acy;&scy;&tcy;&ocy;&yacy;&shchcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &iecy;&dcy;&icy;&ncy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ycy;&mcy; &rcy;&acy;&scy;&pcy;&ocy;&zcy;&ncy;&acy;&vcy;&acy;&iecy;&mcy;&ycy;&mcy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&mcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&mcy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy;  &quot;version&quot;  &scy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;&mcy;  <code>1</code>  &icy;&lcy;&icy;  <code>2</code> . &Scy;&mcy;.  <a href="gitprotocol-v2.html">gitprotocol-v2[5]</a>  &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&jcy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy; &ocy; &vcy;&iecy;&rcy;&scy;&icy;&icy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&acy; 2.</span></p> </div> <h2 class="text-body-emphasis"  id="_git_transport"><span data-i18n="1667df86e6a4b4834bffdb7669846bd374ca56b7f17aab1551096464c7272cf7/bb" data-source="Git transport" onmousemove="i18n(this)">Git transport</span></h2> <div> <p><span data-i18n="17b707506734a1b2fe8d9c19a28635b2bd14eb2d46362b1ecbd03e3d680c254c/24" data-source="The Git transport starts off by sending the command and repository on the wire using the pkt-line format, followed by a NUL byte and a hostname parameter, terminated by a NUL byte." onmousemove="i18n(this)">&Tcy;&rcy;&acy;&ncy;&scy;&pcy;&ocy;&rcy;&tcy;  Git  &ncy;&acy;&chcy;&icy;&ncy;&acy;&iecy;&tcy;&scy;&yacy; &scy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&icy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &icy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy; &pcy;&ocy; &scy;&iecy;&tcy;&icy; &vcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; pkt-line, &zcy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&mcy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &ncy;&ucy;&lcy;&iecy;&vcy;&ocy;&jcy; &bcy;&acy;&jcy;&tcy; &icy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &icy;&mcy;&iecy;&ncy;&icy; &khcy;&ocy;&scy;&tcy;&acy;, &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&acy;&yucy;&shchcy;&icy;&jcy;&scy;&yacy; &ncy;&ucy;&lcy;&iecy;&vcy;&ycy;&mcy; &bcy;&acy;&jcy;&tcy;&ocy;&mcy;.</span></p> <div> <div> <pre class="hljs language-bash">0033git-upload-pack /project.git\0host=myserver.com\0</pre> </div> </div> <p><span data-i18n="adaa5db926748a3998ed9e8c036c69438ac13de3d51e4683079757fdd091a796/f0" data-source="The transport may send Extra Parameters by adding an additional NUL byte, and then adding one or more NUL-terminated strings:" onmousemove="i18n(this)">&Tcy;&rcy;&acy;&ncy;&scy;&pcy;&ocy;&rcy;&tcy; &mcy;&ocy;&zhcy;&iecy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&iecy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy;, &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&yacy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&jcy; NUL-&bcy;&acy;&jcy;&tcy;, &acy; &zcy;&acy;&tcy;&iecy;&mcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&yacy; &ocy;&dcy;&ncy;&ucy; &icy;&lcy;&icy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &scy;&tcy;&rcy;&ocy;&kcy;, &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&acy;&yucy;&shchcy;&icy;&khcy;&scy;&yacy; NUL:</span></p> <div> <div> <pre class="hljs language-bash">003egit-upload-pack /project.git\0host=myserver.com\0\0version=1\0</pre> </div> </div> <div> <div> <div> <div> <pre class="hljs language-sql">git<span class="hljs-operator">-</span>proto<span class="hljs-operator">-</span>request <span class="hljs-operator">=</span> request<span class="hljs-operator">-</span>command SP pathname NUL
      [ host<span class="hljs-operator">-</span><span class="hljs-keyword">parameter</span> NUL ] [ NUL extra<span class="hljs-operator">-</span>parameters ]
request<span class="hljs-operator">-</span>command   <span class="hljs-operator">=</span> &quot;git-upload-pack&quot; <span class="hljs-operator">/</span> &quot;git-receive-pack&quot; <span class="hljs-operator">/</span>
      &quot;git-upload-archive&quot;   ; <span class="hljs-keyword">case</span> <span class="hljs-keyword">sensitive</span>
pathname          <span class="hljs-operator">=</span> <span class="hljs-operator">*</span>( <span class="hljs-operator">%</span>x01<span class="hljs-operator">-</span>ff ) ; exclude NUL
host<span class="hljs-operator">-</span><span class="hljs-keyword">parameter</span>    <span class="hljs-operator">=</span> &quot;host=&quot; hostname [ &quot;:&quot; port ]
extra<span class="hljs-operator">-</span>parameters  <span class="hljs-operator">=</span> <span class="hljs-number">1</span><span class="hljs-operator">*</span>extra<span class="hljs-operator">-</span><span class="hljs-keyword">parameter</span>
extra<span class="hljs-operator">-</span><span class="hljs-keyword">parameter</span>   <span class="hljs-operator">=</span> <span class="hljs-number">1</span><span class="hljs-operator">*</span>( <span class="hljs-operator">%</span>x01<span class="hljs-operator">-</span>ff ) NUL</pre> </div> </div> </div> </div> <p><span data-i18n="52888c54f5317d8d94da48ae214fefd5deb82c61ad4f255917c36b320ac1e374/b4" data-source="host-parameter is used for the git-daemon name based virtual hosting. See --interpolated-path option to git daemon, with the %H/%CH format characters." onmousemove="i18n(this)">&Pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &khcy;&ocy;&scy;&tcy;&acy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &vcy;&icy;&rcy;&tcy;&ucy;&acy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &khcy;&ocy;&scy;&tcy;&icy;&ncy;&gcy;&acy;  git  -daemon &ncy;&acy; &ocy;&scy;&ncy;&ocy;&vcy;&iecy; &icy;&mcy;&iecy;&ncy;&icy;. &Scy;&mcy;. &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; --interpolated-path &dcy;&lcy;&yacy; &dcy;&iecy;&mcy;&ocy;&ncy;&acy;  git  &scy; &scy;&icy;&mcy;&vcy;&ocy;&lcy;&acy;&mcy;&icy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&acy; %H/%CH.</span></p> <p><span data-i18n="03fd009745d74fc35f49dc181752ed16de240a35480bd9e4375f5353406effd5/ab" data-source="Basically what the Git client is doing to connect to an &lt;code&gt;upload-pack&lt;/code&gt; process on the server side over the Git protocol is this:" onmousemove="i18n(this)">&Pcy;&ocy; &scy;&ucy;&tcy;&icy;, &kcy;&lcy;&icy;&iecy;&ncy;&tcy;  Git  &dcy;&iecy;&lcy;&acy;&iecy;&tcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&iecy; &dcy;&lcy;&yacy; &pcy;&ocy;&dcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&yacy; &kcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ucy;  <code>upload-pack</code>  &ncy;&acy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&iecy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy; &pcy;&ocy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&ucy;  Git :</span></p> <div> <div> <pre class="hljs language-shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash"><span class="hljs-built_in">echo</span> -e -n \
  <span class="hljs-string">&quot;003agit-upload-pack /schacon/gitbook.git\0host=example.com\0&quot;</span> |</span>
  nc -v example.com 9418</pre> </div> </div> </div> <h2 class="text-body-emphasis"  id="_ssh_transport"><span data-i18n="91570e3ec0ae52f3e5d68e9cc95c1939e49a99e9a21a0bbfe4c653bbfd6dd8b1/2a" data-source="Ssh transport" onmousemove="i18n(this)">Ssh transport</span></h2> <div> <p><span data-i18n="d46ceb5e5e44e81bd8c1d26baf4e2e4967c78c0196a50f1d8c3dd6eed604f37d/37" data-source="Initiating the upload-pack or receive-pack processes over SSH is executing the binary on the server via SSH remote execution. It is basically equivalent to running this:" onmousemove="i18n(this)">&Icy;&ncy;&icy;&tscy;&icy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ocy;&vcy; &zcy;&acy;&gcy;&rcy;&ucy;&zcy;&kcy;&icy; &icy;&lcy;&icy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&acy;&kcy;&iecy;&tcy;&ocy;&vcy; &chcy;&iecy;&rcy;&iecy;&zcy; SSH &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&iecy; &dcy;&vcy;&ocy;&icy;&chcy;&ncy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy; &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&iecy; &pcy;&ocy;&scy;&rcy;&iecy;&dcy;&scy;&tcy;&vcy;&ocy;&mcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; SSH. &Pcy;&ocy; &scy;&ucy;&tcy;&icy;, &ecy;&tcy;&ocy; &ecy;&kcy;&vcy;&icy;&vcy;&acy;&lcy;&iecy;&ncy;&tcy;&ncy;&ocy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&ucy; &ecy;&tcy;&ocy;&gcy;&ocy;:</span></p> <div> <div> <pre class="hljs language-ruby"><span class="hljs-variable">$ </span>ssh git.example.com <span class="hljs-string">&quot;git-upload-pack &apos;/project.git&apos;&quot;</span></pre> </div> </div> <p><span data-i18n="807c2efb20a670fff43b9f5411f91b06189e4d01948f2cc51cef04ea9e30d757/1e" data-source="For a server to support Git pushing and pulling for a given user over SSH, that user needs to be able to execute one or both of those commands via the SSH shell that they are provided on login. On some systems, that shell access is limited to only being able to run those two commands, or even just one of them." onmousemove="i18n(this)">&CHcy;&tcy;&ocy;&bcy;&ycy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&lcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&ucy; &icy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&iecy;  Git  &dcy;&lcy;&yacy; &dcy;&acy;&ncy;&ncy;&ocy;&gcy;&ocy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy; &chcy;&iecy;&rcy;&iecy;&zcy; SSH, &ecy;&tcy;&ocy;&tcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &icy;&mcy;&iecy;&tcy;&softcy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&softcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&softcy; &ocy;&dcy;&ncy;&ucy; &icy;&lcy;&icy; &ocy;&bcy;&iecy; &ecy;&tcy;&icy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &chcy;&iecy;&rcy;&iecy;&zcy; &ocy;&bcy;&ocy;&lcy;&ocy;&chcy;&kcy;&ucy; SSH, &kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &iecy;&mcy;&ucy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &pcy;&rcy;&icy; &vcy;&khcy;&ocy;&dcy;&iecy; &vcy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ucy;. &Vcy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&acy;&khcy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy; &kcy; &ocy;&bcy;&ocy;&lcy;&ocy;&chcy;&kcy;&iecy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&iecy;&ncy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&softcy;&yucy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ecy;&tcy;&icy;&khcy; &dcy;&vcy;&ucy;&khcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy; &icy;&lcy;&icy; &dcy;&acy;&zhcy;&iecy; &ocy;&dcy;&ncy;&ocy;&jcy; &icy;&zcy; &ncy;&icy;&khcy;.</span></p> <p><span data-i18n="e77f2fae647d87564a634dde186a0822c7253228fa948a27f5bde780e74ba237/07" data-source="In an ssh:// format URI, it&amp;rsquo;s absolute in the URI, so the &lt;code&gt;/&lt;/code&gt; after the host name (or port number) is sent as an argument, which is then read by the remote git-upload-pack exactly as is, so it&amp;rsquo;s effectively an absolute path in the remote filesystem." onmousemove="i18n(this)">&Vcy; URI &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&acy; ssh:// &ocy;&ncy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &acy;&bcy;&scy;&ocy;&lcy;&yucy;&tcy;&ncy;&ycy;&mcy; &vcy; URI, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy;  <code>/</code>  &pcy;&ocy;&scy;&lcy;&iecy; &icy;&mcy;&iecy;&ncy;&icy; &khcy;&ocy;&scy;&tcy;&acy; (&icy;&lcy;&icy; &ncy;&ocy;&mcy;&iecy;&rcy;&acy; &pcy;&ocy;&rcy;&tcy;&acy;) &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &zcy;&acy;&tcy;&iecy;&mcy; &scy;&chcy;&icy;&tcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&mcy; &pcy;&acy;&kcy;&iecy;&tcy;&ocy;&mcy; git-upload-pack &tcy;&ocy;&chcy;&ncy;&ocy; &tcy;&acy;&kcy; &zhcy;&iecy;, &kcy;&acy;&kcy; &iecy;&scy;&tcy;&softcy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &pcy;&ocy; &scy;&ucy;&tcy;&icy;, &ecy;&tcy;&ocy; &acy;&bcy;&scy;&ocy;&lcy;&yucy;&tcy;&ncy;&ycy;&jcy; &pcy;&ucy;&tcy;&softcy; &vcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&jcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;&ocy;&jcy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&iecy;.</span></p> <div> <div> <pre class="hljs language-sql">   git clone ssh:<span class="hljs-operator">/</span><span class="hljs-operator">/</span><span class="hljs-keyword">user</span><span class="hljs-variable">@example</span>.com<span class="hljs-operator">/</span>project.git
  <span class="hljs-operator">|</span>
  v
ssh <span class="hljs-keyword">user</span><span class="hljs-variable">@example</span>.com &quot;git-upload-pack &apos;/project.git&apos;&quot;</pre> </div> </div> <p><span data-i18n="dcf35e109ee252d34eb65a5f374ff25ba6a46755cc93df424c1383d7a2f5d9e4/72" data-source="In a &amp;quot;user@host:path&amp;quot; format URI, it&amp;rsquo;s relative to the user&amp;rsquo;s home directory, because the Git client will run:" onmousemove="i18n(this)">&Vcy; URI &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&acy;  &quot;user@host:path&quot;  &ocy;&ncy; &ocy;&tcy;&ncy;&ocy;&scy;&icy;&tcy;&scy;&yacy; &kcy; &dcy;&ocy;&mcy;&acy;&shcy;&ncy;&iecy;&mcy;&ucy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&ucy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;  Git  &bcy;&ucy;&dcy;&iecy;&tcy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&tcy;&softcy;:</span></p> <div> <div> <pre class="hljs language-sql">   git clone <span class="hljs-keyword">user</span><span class="hljs-variable">@example</span>.com:project.git
    <span class="hljs-operator">|</span>
    v
ssh <span class="hljs-keyword">user</span><span class="hljs-variable">@example</span>.com &quot;git-upload-pack &apos;project.git&apos;&quot;</pre> </div> </div> <p><span data-i18n="3da60bfb9a0928a513572a5126b64820a6fec6e7fc1bb9372244b87c7847f144/98" data-source="The exception is if a &lt;code&gt;~&lt;/code&gt; is used, in which case we execute it without the leading &lt;code&gt;/&lt;/code&gt;." onmousemove="i18n(this)">&Icy;&scy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&icy;&iecy; &scy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&lcy;&ucy;&chcy;&acy;&jcy;, &kcy;&ocy;&gcy;&dcy;&acy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy;  <code>~</code> , &icy; &vcy; &ecy;&tcy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &mcy;&ycy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&mcy; &iecy;&gcy;&ocy; &bcy;&iecy;&zcy; &vcy;&iecy;&dcy;&ucy;&shchcy;&iecy;&gcy;&ocy;  <code>/</code> .</span></p> <div> <div> <pre class="hljs language-sql">   ssh:<span class="hljs-operator">/</span><span class="hljs-operator">/</span><span class="hljs-keyword">user</span><span class="hljs-variable">@example</span>.com<span class="hljs-operator">/</span><span class="hljs-operator">~</span>alice<span class="hljs-operator">/</span>project.git,
    <span class="hljs-operator">|</span>
    v
ssh <span class="hljs-keyword">user</span><span class="hljs-variable">@example</span>.com &quot;git-upload-pack &apos;~alice/project.git&apos;&quot;</pre> </div> </div> <p><span data-i18n="dc26eb0851e30d17e2cdad274bf16b712c76d9d489e1cda07c7bbacda2eb7aa9/9d" data-source="Depending on the value of the &lt;code&gt;protocol.version&lt;/code&gt; configuration variable, Git may attempt to send Extra Parameters as a colon-separated string in the GIT_PROTOCOL environment variable. This is done only if the &lt;code&gt;ssh.variant&lt;/code&gt; configuration variable indicates that the ssh command supports passing environment variables as an argument." onmousemove="i18n(this)">&Vcy; &zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &ocy;&tcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>protocol.version</code>   Git  &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&ocy;&pcy;&ycy;&tcy;&acy;&tcy;&softcy;&scy;&yacy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&iecy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; &vcy; &vcy;&icy;&dcy;&iecy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;, &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ocy;&jcy; &dcy;&vcy;&ocy;&iecy;&tcy;&ocy;&chcy;&icy;&yacy;&mcy;&icy;, &vcy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;&jcy; &scy;&rcy;&iecy;&dcy;&ycy; GIT_PROTOCOL. &Ecy;&tcy;&ocy; &dcy;&iecy;&lcy;&acy;&iecy;&tcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy; &tcy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy;, &iecy;&scy;&lcy;&icy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&acy;&yacy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>ssh.variant</code>  &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; ssh &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&iecy;&tcy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&ucy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&khcy; &scy;&rcy;&iecy;&dcy;&ycy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;.</span></p> <p><span data-i18n="ec295defc2a3bc25d56b3331209f1587d031d943ccba3104e1892f5482aadb57/36" data-source="A few things to remember here:" onmousemove="i18n(this)">&Zcy;&dcy;&iecy;&scy;&softcy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &zcy;&acy;&pcy;&ocy;&mcy;&ncy;&icy;&tcy;&softcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy;&iecy;&shchcy;&iecy;&jcy;:</span></p> <div> <ul> <li> <p><span data-i18n="6f7826ec2b2770098cdf4eb008d1230f8d29f481975768c3318d2acbbd685e12/e2" data-source="The &amp;quot;command name&amp;quot; is spelled with dash (e.g. git-upload-pack), but this can be overridden by the client;" onmousemove="i18n(this)">&quot;command name&quot;  &pcy;&icy;&shcy;&iecy;&tcy;&scy;&yacy; &chcy;&iecy;&rcy;&iecy;&zcy; &tcy;&icy;&rcy;&iecy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, git-upload-pack), &ncy;&ocy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &mcy;&ocy;&zhcy;&iecy;&tcy; &ecy;&tcy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy;;</span></p> </li> <li> <p><span data-i18n="32d752aed61f5b411ad7a3f50558715586d53b1720872e50c22a759acc94649b/ca" data-source="The repository path is always quoted with single quotes." onmousemove="i18n(this)">&Pcy;&ucy;&tcy;&softcy; &kcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yucy; &vcy;&scy;&iecy;&gcy;&dcy;&acy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;&scy;&yacy; &vcy; &ocy;&dcy;&icy;&ncy;&acy;&rcy;&ncy;&ycy;&khcy; &kcy;&acy;&vcy;&ycy;&chcy;&kcy;&acy;&khcy;.</span></p> </li> </ul> </div> </div> <h2 class="text-body-emphasis"  id="_fetching_data_from_a_server"><span data-i18n="ff2ee36cdefdaffa9be706887e9110ac08be4d44dbdc112c64770e44a8e8accf/ea" data-source="Fetching data from a server" onmousemove="i18n(this)">&Pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &scy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy;</span></h2> <div> <p><span data-i18n="27004eb5fc930f990706648569fec83d4615bcedb202530b332a8df2187c69bb/7f" data-source="When one Git repository wants to get data that a second repository has, the first can &lt;code&gt;fetch&lt;/code&gt; from the second. This operation determines what data the server has that the client does not then streams that data down to the client in packfile format." onmousemove="i18n(this)">&Kcy;&ocy;&gcy;&dcy;&acy; &ocy;&dcy;&icy;&ncy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;  Git  &khcy;&ocy;&chcy;&iecy;&tcy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&tcy;&softcy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &iecy;&scy;&tcy;&softcy; &ucy; &vcy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;, &pcy;&iecy;&rcy;&vcy;&ycy;&jcy; &mcy;&ocy;&zhcy;&iecy;&tcy;  <code>fetch</code>  &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&tcy;&softcy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &icy;&zcy; &vcy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy;. &Ecy;&tcy;&acy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&yacy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy;, &kcy;&acy;&kcy;&icy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &iecy;&scy;&tcy;&softcy; &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&iecy; &icy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &ncy;&iecy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&iecy;&tcy;, &acy; &zcy;&acy;&tcy;&iecy;&mcy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&iecy;&tcy; &ecy;&tcy;&icy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ucy; &vcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_reference_discovery"><span data-i18n="d1a44a68d5d3cb901eb37d35679caeb9a126b223c40c36649700cd720e784917/65" data-source="Reference discovery" onmousemove="i18n(this)">Reference discovery</span></h2> <div> <p><span data-i18n="a17e4fc03d400dc594776acadd768ab74e35d27f12c13294e28a516478d73dc5/b9" data-source="When the client initially connects the server will immediately respond with a version number (if &amp;quot;version=1&amp;quot; is sent as an Extra Parameter), and a listing of each reference it has (all branches and tags) along with the object name that each reference currently points to." onmousemove="i18n(this)">&Kcy;&ocy;&gcy;&dcy;&acy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &pcy;&iecy;&rcy;&vcy;&ocy;&ncy;&acy;&chcy;&acy;&lcy;&softcy;&ncy;&ocy; &pcy;&ocy;&dcy;&kcy;&lcy;&yucy;&chcy;&acy;&iecy;&tcy;&scy;&yacy;, &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &ncy;&iecy;&mcy;&iecy;&dcy;&lcy;&iecy;&ncy;&ncy;&ocy; &ocy;&tcy;&vcy;&iecy;&tcy;&icy;&tcy; &ncy;&ocy;&mcy;&iecy;&rcy;&ocy;&mcy; &vcy;&iecy;&rcy;&scy;&icy;&icy; (&iecy;&scy;&lcy;&icy;  &quot;version=1&quot;  &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy; &kcy;&acy;&kcy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&jcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;) &icy; &scy;&pcy;&icy;&scy;&kcy;&ocy;&mcy; &kcy;&acy;&zhcy;&dcy;&ocy;&jcy; &icy;&mcy;&iecy;&yucy;&shchcy;&iecy;&jcy;&scy;&yacy; &ucy; &ncy;&iecy;&gcy;&ocy; &scy;&scy;&ycy;&lcy;&kcy;&icy; (&vcy;&scy;&iecy; &vcy;&iecy;&tcy;&kcy;&icy; &icy; &tcy;&iecy;&gcy;&icy;), &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;, &ncy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &vcy; &dcy;&acy;&ncy;&ncy;&ycy;&jcy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; &kcy;&acy;&zhcy;&dcy;&acy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&acy;. .</span></p> <div> <div> <pre class="hljs language-bash"> $ <span class="hljs-built_in">echo</span> -e -n <span class="hljs-string">&quot;0045git-upload-pack /schacon/gitbook.git\0host=example.com\0\0version=1\0&quot;</span> |
    nc -v example.com 9418
 000eversion 1
 00887217a7c7e582c46cec22a130adf4b9d7d950fba0 HEAD\0multi_ack thin-pack
side-band side-band-64k ofs-delta shallow no-progress include-tag
 00441d3fcd5ced445d1abc402225c0b8a1299641f497 refs/heads/integration
 003f7217a7c7e582c46cec22a130adf4b9d7d950fba0 refs/heads/master
 003cb88d2441cac0977faf98efc80305012112238d9d refs/tags/v0.9
 003c525128480b96c89e6418b1e40909bf6c5b2d580f refs/tags/v1.0
 003fe92df48743b7bc7d26bcaabfddde0a1e20cae47c refs/tags/v1.0^{}
 0000</pre> </div> </div> <p><span data-i18n="a9a7964cbe38ea194b1113844113568cad307c915330cd5dcbd1d4b9ccbb97dd/fb" data-source="The returned response is a pkt-line stream describing each ref and its current value. The stream MUST be sorted by name according to the C locale ordering." onmousemove="i18n(this)">&Vcy;&ocy;&zcy;&vcy;&rcy;&acy;&shchcy;&iecy;&ncy;&ncy;&ycy;&jcy; &ocy;&tcy;&vcy;&iecy;&tcy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &pcy;&ocy;&tcy;&ocy;&kcy; &scy;&tcy;&rcy;&ocy;&kcy; pkt, &ocy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&yucy;&shchcy;&icy;&jcy; &kcy;&acy;&zhcy;&dcy;&ucy;&yucy; &scy;&scy;&ycy;&lcy;&kcy;&ucy; &icy; &iecy;&iecy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;. &Pcy;&ocy;&tcy;&ocy;&kcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &bcy;&ycy;&tcy;&softcy; &ocy;&tcy;&scy;&ocy;&rcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy; &pcy;&ocy; &icy;&mcy;&iecy;&ncy;&icy; &vcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&icy;&icy; &scy; &pcy;&ocy;&rcy;&yacy;&dcy;&kcy;&ocy;&mcy; &lcy;&ocy;&kcy;&acy;&lcy;&icy; C.</span></p> <p><span data-i18n="a946742d08f177419d58976ea889c6150a7cf81bd62e4efcdc25260ee9918783/24" data-source="If HEAD is a valid ref, HEAD MUST appear as the first advertised ref. If HEAD is not a valid ref, HEAD MUST NOT appear in the advertisement list at all, but other refs may still appear." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; HEAD &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &dcy;&ocy;&pcy;&ucy;&scy;&tcy;&icy;&mcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&ocy;&jcy;, HEAD &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &pcy;&ocy;&yacy;&vcy;&icy;&tcy;&softcy;&scy;&yacy; &kcy;&acy;&kcy; &pcy;&iecy;&rcy;&vcy;&acy;&yacy; &ocy;&bcy;&hardcy;&yacy;&vcy;&lcy;&iecy;&ncy;&ncy;&acy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&acy;. &IEcy;&scy;&lcy;&icy; HEAD &ncy;&iecy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &dcy;&ocy;&pcy;&ucy;&scy;&tcy;&icy;&mcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&ocy;&jcy;, HEAD &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &vcy;&ocy;&ocy;&bcy;&shchcy;&iecy; &pcy;&ocy;&yacy;&vcy;&lcy;&yacy;&tcy;&softcy;&scy;&yacy; &vcy; &scy;&pcy;&icy;&scy;&kcy;&iecy; &ocy;&bcy;&hardcy;&yacy;&vcy;&lcy;&iecy;&ncy;&icy;&jcy;, &ncy;&ocy; &dcy;&rcy;&ucy;&gcy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &vcy;&scy;&iecy; &rcy;&acy;&vcy;&ncy;&ocy; &mcy;&ocy;&gcy;&ucy;&tcy; &pcy;&ocy;&yacy;&vcy;&lcy;&yacy;&tcy;&softcy;&scy;&yacy;.</span></p> <p><span data-i18n="87547e81429f2a9f8ed97c1e5311e21bab646b28497ba972ed166f3a99901286/34" data-source="The stream MUST include capability declarations behind a NUL on the first ref. The peeled value of a ref (that is &amp;quot;ref^{}&amp;quot;) MUST be immediately after the ref itself, if presented. A conforming server MUST peel the ref if it&amp;rsquo;s an annotated tag." onmousemove="i18n(this)">&Pcy;&ocy;&tcy;&ocy;&kcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&tcy;&softcy; &ocy;&bcy;&hardcy;&yacy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&iecy;&jcy; &pcy;&ocy;&scy;&lcy;&iecy; NUL &vcy; &pcy;&iecy;&rcy;&vcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&iecy;. &Ocy;&chcy;&icy;&shchcy;&iecy;&ncy;&ncy;&ocy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; (&tcy;&ocy; &iecy;&scy;&tcy;&softcy;  &quot;ref^{}&quot; ) &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ocy; &bcy;&ycy;&tcy;&softcy; &scy;&rcy;&acy;&zcy;&ucy; &pcy;&ocy;&scy;&lcy;&iecy; &scy;&acy;&mcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy;&acy; &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&acy;. &Scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&jcy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &ocy;&chcy;&icy;&scy;&tcy;&icy;&tcy;&softcy; &scy;&scy;&ycy;&lcy;&kcy;&ucy;, &iecy;&scy;&lcy;&icy; &ecy;&tcy;&ocy; &acy;&ncy;&ncy;&ocy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&jcy; &tcy;&iecy;&gcy;.</span></p> <div> <div> <pre class="hljs language-perl">  advertised-refs  =  *<span class="hljs-number">1</span>(<span class="hljs-string">&quot;version 1&quot;</span>)
                      (<span class="hljs-keyword">no</span>-refs / list-of-refs)
                      *shallow
                      flush-pkt

  <span class="hljs-keyword">no</span>-refs          =  PKT-LINE(zero-id SP <span class="hljs-string">&quot;capabilities^{}&quot;</span>
                      NUL capability-list)

  list-of-refs     =  first-<span class="hljs-keyword">ref</span> *other-<span class="hljs-keyword">ref</span>
  first-<span class="hljs-keyword">ref</span>        =  PKT-LINE(obj-id SP refname
                      NUL capability-list)

  other-<span class="hljs-keyword">ref</span>        =  PKT-LINE(other-tip / other-peeled)
  other-tip        =  obj-id SP refname
  other-peeled     =  obj-id SP refname <span class="hljs-string">&quot;^{}&quot;</span>

  shallow          =  PKT-LINE(<span class="hljs-string">&quot;shallow&quot;</span> SP obj-id)

  capability-list  =  capability *(SP capability)
  capability       =  <span class="hljs-number">1</span>*(LC_ALPHA / DIGIT / <span class="hljs-string">&quot;-&quot;</span> / <span class="hljs-string">&quot;_&quot;</span>)
  LC_ALPHA         =  %x61-<span class="hljs-number">7</span>A</pre> </div> </div> <p><span data-i18n="45bf9ccfdbf24d6adc5c64803aabfc1da4d419dc1f8485b9ca884c5c0cf6cb0c/25" data-source="Server and client MUST use lowercase for obj-id, both MUST treat obj-id as case-insensitive." onmousemove="i18n(this)">&Scy;&iecy;&rcy;&vcy;&iecy;&rcy; &icy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy; &scy;&tcy;&rcy;&ocy;&chcy;&ncy;&ycy;&iecy; &bcy;&ucy;&kcy;&vcy;&ycy; &dcy;&lcy;&yacy; obj-id, &ocy;&bcy;&acy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &rcy;&acy;&scy;&scy;&mcy;&acy;&tcy;&rcy;&icy;&vcy;&acy;&tcy;&softcy; obj-id &kcy;&acy;&kcy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&ocy;&ncy;&iecy;&zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ycy;&jcy;.</span></p> <p><span data-i18n="a710c2315f5f84dc7733778f78945a1acb7b02ce6830389e5c114cc8c9031042/fa" data-source="See protocol-capabilities.txt for a list of allowed server capabilities and descriptions." onmousemove="i18n(this)">&Scy;&mcy;. &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;-capabilities.txt &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &scy;&pcy;&icy;&scy;&kcy;&acy; &rcy;&acy;&zcy;&rcy;&iecy;&shcy;&iecy;&ncy;&ncy;&ycy;&khcy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&iecy;&jcy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy; &icy; &icy;&khcy; &ocy;&pcy;&icy;&scy;&acy;&ncy;&icy;&jcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_packfile_negotiation"><span data-i18n="6fcd1345ae4c6d8d98b9df5ebac1ee6f12f8ea06b3afaeb4f0d34d65a1ae881a/5a" data-source="Packfile negotiation" onmousemove="i18n(this)">Packfile negotiation</span></h2> <div> <p><span data-i18n="159a226b8c9b4d65fc697dde3127ff54ced6d71eb9d54f9d3cde268c09526d20/aa" data-source="After reference and capabilities discovery, the client can decide to terminate the connection by sending a flush-pkt, telling the server it can now gracefully terminate, and disconnect, when it does not need any pack data. This can happen with the ls-remote command, and also can happen when the client already is up to date." onmousemove="i18n(this)">&Pcy;&ocy;&scy;&lcy;&iecy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &icy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&iecy;&jcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&rcy;&icy;&ncy;&yacy;&tcy;&softcy; &rcy;&iecy;&shcy;&iecy;&ncy;&icy;&iecy; &ocy; &pcy;&rcy;&iecy;&kcy;&rcy;&acy;&shchcy;&iecy;&ncy;&icy;&icy; &scy;&ocy;&iecy;&dcy;&icy;&ncy;&iecy;&ncy;&icy;&yacy;, &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&vcy; &fcy;&lcy;&iecy;&shcy;-pkt, &scy;&ocy;&ocy;&bcy;&shchcy;&acy;&yacy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ucy;, &chcy;&tcy;&ocy; &tcy;&iecy;&pcy;&iecy;&rcy;&softcy; &ocy;&ncy; &mcy;&ocy;&zhcy;&iecy;&tcy; &kcy;&ocy;&rcy;&rcy;&iecy;&kcy;&tcy;&ncy;&ocy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&icy;&tcy;&softcy; &scy;&ocy;&iecy;&dcy;&icy;&ncy;&iecy;&ncy;&icy;&iecy; &icy; &ocy;&tcy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&softcy;&scy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy; &iecy;&mcy;&ucy; &ncy;&iecy; &ncy;&ucy;&zhcy;&ncy;&ycy; &kcy;&acy;&kcy;&icy;&iecy;-&lcy;&icy;&bcy;&ocy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy;. &Ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&rcy;&ocy;&icy;&zcy;&ocy;&jcy;&tcy;&icy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; ls-remote, &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&rcy;&ocy;&icy;&zcy;&ocy;&jcy;&tcy;&icy;, &kcy;&ocy;&gcy;&dcy;&acy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &ucy;&zhcy;&iecy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;.</span></p> <p><span data-i18n="acbb8c3f1a38bf42c6f1e8013b47001835ad0089978eaea720aea785818a0d21/1d" data-source="Otherwise, it enters the negotiation phase, where the client and server determine what the minimal packfile necessary for transport is, by telling the server what objects it wants, its shallow objects (if any), and the maximum commit depth it wants (if any). The client will also send a list of the capabilities it wants to be in effect, out of what the server said it could do with the first &lt;code&gt;want&lt;/code&gt; line." onmousemove="i18n(this)">&Vcy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &ocy;&ncy; &vcy;&scy;&tcy;&ucy;&pcy;&acy;&iecy;&tcy; &vcy; &fcy;&acy;&zcy;&ucy; &pcy;&iecy;&rcy;&iecy;&gcy;&ocy;&vcy;&ocy;&rcy;&ocy;&vcy;, &gcy;&dcy;&iecy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &icy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&yucy;&tcy; &mcy;&icy;&ncy;&icy;&mcy;&acy;&lcy;&softcy;&ncy;&ycy;&jcy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy;, &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ycy;&jcy; &dcy;&lcy;&yacy; &tcy;&rcy;&acy;&ncy;&scy;&pcy;&ocy;&rcy;&tcy;&icy;&rcy;&ocy;&vcy;&kcy;&icy;, &scy;&ocy;&ocy;&bcy;&shchcy;&acy;&yacy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ucy;, &kcy;&acy;&kcy;&icy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy; &iecy;&mcy;&ucy; &ncy;&ucy;&zhcy;&ncy;&ycy;, &iecy;&gcy;&ocy; &mcy;&iecy;&lcy;&kcy;&icy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy; (&iecy;&scy;&lcy;&icy; &iecy;&scy;&tcy;&softcy;) &icy; &mcy;&acy;&kcy;&scy;&icy;&mcy;&acy;&lcy;&softcy;&ncy;&ucy;&yucy; &gcy;&lcy;&ucy;&bcy;&icy;&ncy;&ucy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ucy;&yucy; &ocy;&ncy; &khcy;&ocy;&chcy;&iecy;&tcy; (&iecy;&scy;&lcy;&icy; &tcy;&acy;&kcy;&ocy;&vcy;&acy;&yacy; &icy;&mcy;&iecy;&iecy;&tcy;&scy;&yacy;). ). &Kcy;&lcy;&icy;&iecy;&ncy;&tcy; &tcy;&acy;&kcy;&zhcy;&iecy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&iecy;&jcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ocy;&ncy; &khcy;&ocy;&chcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;, &icy;&scy;&khcy;&ocy;&dcy;&yacy; &icy;&zcy; &tcy;&ocy;&gcy;&ocy;, &chcy;&tcy;&ocy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &scy;&kcy;&acy;&zcy;&acy;&lcy;, &chcy;&tcy;&ocy; &ocy;&ncy; &mcy;&ocy;&zhcy;&iecy;&tcy; &scy;&dcy;&iecy;&lcy;&acy;&tcy;&softcy; &scy; &pcy;&iecy;&rcy;&vcy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&ocy;&jcy;  <code>want</code> .</span></p> <div> <div> <pre class="hljs language-sql">  upload<span class="hljs-operator">-</span>request    <span class="hljs-operator">=</span>  want<span class="hljs-operator">-</span>list
                       <span class="hljs-operator">*</span>shallow<span class="hljs-operator">-</span>line
                       <span class="hljs-operator">*</span><span class="hljs-number">1</span>depth<span class="hljs-operator">-</span>request
                       [<span class="hljs-keyword">filter</span><span class="hljs-operator">-</span>request]
                       flush<span class="hljs-operator">-</span>pkt

  want<span class="hljs-operator">-</span>list         <span class="hljs-operator">=</span>  <span class="hljs-keyword">first</span><span class="hljs-operator">-</span>want
                       <span class="hljs-operator">*</span>additional<span class="hljs-operator">-</span>want

  shallow<span class="hljs-operator">-</span>line      <span class="hljs-operator">=</span>  PKT<span class="hljs-operator">-</span>LINE(&quot;shallow&quot; SP obj<span class="hljs-operator">-</span>id)

  depth<span class="hljs-operator">-</span>request     <span class="hljs-operator">=</span>  PKT<span class="hljs-operator">-</span>LINE(&quot;deepen&quot; SP depth) <span class="hljs-operator">/</span>
                       PKT<span class="hljs-operator">-</span>LINE(&quot;deepen-since&quot; SP <span class="hljs-type">timestamp</span>) <span class="hljs-operator">/</span>
                       PKT<span class="hljs-operator">-</span>LINE(&quot;deepen-not&quot; SP <span class="hljs-keyword">ref</span>)

  <span class="hljs-keyword">first</span><span class="hljs-operator">-</span>want        <span class="hljs-operator">=</span>  PKT<span class="hljs-operator">-</span>LINE(&quot;want&quot; SP obj<span class="hljs-operator">-</span>id SP capability<span class="hljs-operator">-</span>list)
  additional<span class="hljs-operator">-</span>want   <span class="hljs-operator">=</span>  PKT<span class="hljs-operator">-</span>LINE(&quot;want&quot; SP obj<span class="hljs-operator">-</span>id)

  depth             <span class="hljs-operator">=</span>  <span class="hljs-number">1</span><span class="hljs-operator">*</span>DIGIT

  <span class="hljs-keyword">filter</span><span class="hljs-operator">-</span>request    <span class="hljs-operator">=</span>  PKT<span class="hljs-operator">-</span>LINE(&quot;filter&quot; SP <span class="hljs-keyword">filter</span><span class="hljs-operator">-</span>spec)</pre> </div> </div> <p><span data-i18n="0dd08da06fb68e9d6236f8e62b1e1b8157b6015b5d6af0bb63af730cc3b1fd28/b2" data-source="Clients MUST send all the obj-ids it wants from the reference discovery phase as &lt;code&gt;want&lt;/code&gt; lines. Clients MUST send at least one &lt;code&gt;want&lt;/code&gt; command in the request body. Clients MUST NOT mention an obj-id in a &lt;code&gt;want&lt;/code&gt; command which did not appear in the response obtained through ref discovery." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &vcy;&scy;&iecy; &ncy;&ucy;&zhcy;&ncy;&ycy;&iecy; &icy;&mcy; obj-id &ncy;&acy; &ecy;&tcy;&acy;&pcy;&iecy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &vcy; &vcy;&icy;&dcy;&iecy; &scy;&tcy;&rcy;&ocy;&kcy;  <code>want</code> . &Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy; &khcy;&ocy;&tcy;&yacy; &bcy;&ycy; &ocy;&dcy;&ncy;&ucy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;  <code>want</code>  &vcy; &tcy;&iecy;&lcy;&iecy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&acy;. &Kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &ucy;&pcy;&ocy;&mcy;&icy;&ncy;&acy;&tcy;&softcy; obj-id &vcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&iecy;  <code>want</code> , &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &ncy;&iecy; &pcy;&ocy;&yacy;&vcy;&icy;&lcy;&scy;&yacy; &vcy; &ocy;&tcy;&vcy;&iecy;&tcy;&iecy;, &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&ncy;&ocy;&mcy; &pcy;&ocy;&scy;&rcy;&iecy;&dcy;&scy;&tcy;&vcy;&ocy;&mcy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy;.</span></p> <p><span data-i18n="5d39655796ed0563ebe4c5426aadbd39d84521199ecc47f1da4b5aa110ac40de/8c" data-source="The client MUST write all obj-ids which it only has shallow copies of (meaning that it does not have the parents of a commit) as &lt;code&gt;shallow&lt;/code&gt; lines so that the server is aware of the limitations of the client&amp;rsquo;s history." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &zcy;&acy;&pcy;&icy;&scy;&acy;&tcy;&softcy; &vcy;&scy;&iecy; obj-id, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ucy; &ncy;&iecy;&gcy;&ocy; &iecy;&scy;&tcy;&softcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&ocy;&vcy;&iecy;&rcy;&khcy;&ncy;&ocy;&scy;&tcy;&ncy;&ycy;&iecy; &kcy;&ocy;&pcy;&icy;&icy; (&ecy;&tcy;&ocy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &ucy; &ncy;&iecy;&gcy;&ocy; &ncy;&iecy;&tcy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&iecy;&jcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy;) &vcy; &vcy;&icy;&dcy;&iecy; &scy;&tcy;&rcy;&ocy;&kcy;  <code>shallow</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &zcy;&ncy;&acy;&lcy; &ocy;&bcy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&iecy;&ncy;&icy;&yacy;&khcy; &icy;&scy;&tcy;&ocy;&rcy;&icy;&icy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&acy;.</span></p> <p><span data-i18n="7fce554418ac9a11834d803f08d956e22d40ce9030f88f4a8ab0b06ed094b749/63" data-source="The client now sends the maximum commit history depth it wants for this transaction, which is the number of commits it wants from the tip of the history, if any, as a &lt;code&gt;deepen&lt;/code&gt; line. A depth of 0 is the same as not making a depth request. The client does not want to receive any commits beyond this depth, nor does it want objects needed only to complete those commits. Commits whose parents are not received as a result are defined as shallow and marked as such in the server. This information is sent back to the client in the next step." onmousemove="i18n(this)">&Tcy;&iecy;&pcy;&iecy;&rcy;&softcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &mcy;&acy;&kcy;&scy;&icy;&mcy;&acy;&lcy;&softcy;&ncy;&ucy;&yucy; &gcy;&lcy;&ucy;&bcy;&icy;&ncy;&ucy; &icy;&scy;&tcy;&ocy;&rcy;&icy;&icy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ucy;&yucy; &ocy;&ncy; &khcy;&ocy;&chcy;&iecy;&tcy; &dcy;&lcy;&yacy; &ecy;&tcy;&ocy;&jcy; &tcy;&rcy;&acy;&ncy;&zcy;&acy;&kcy;&tscy;&icy;&icy;, &tcy;&ocy; &iecy;&scy;&tcy;&softcy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ocy;&ncy; &khcy;&ocy;&chcy;&iecy;&tcy;, &icy;&zcy; &kcy;&ocy;&ncy;&chcy;&icy;&kcy;&acy; &icy;&scy;&tcy;&ocy;&rcy;&icy;&icy;, &iecy;&scy;&lcy;&icy; &tcy;&acy;&kcy;&ocy;&vcy;&ycy;&iecy; &icy;&mcy;&iecy;&yucy;&tcy;&scy;&yacy;, &vcy; &vcy;&icy;&dcy;&iecy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;  <code>deepen</code> . &Gcy;&lcy;&ucy;&bcy;&icy;&ncy;&acy; 0 &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy; &ocy;&tcy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&icy;&iecy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&acy; &gcy;&lcy;&ucy;&bcy;&icy;&ncy;&ycy;. &Kcy;&lcy;&icy;&iecy;&ncy;&tcy; &ncy;&iecy; &khcy;&ocy;&chcy;&iecy;&tcy; &pcy;&ocy;&lcy;&ucy;&chcy;&acy;&tcy;&softcy; &kcy;&acy;&kcy;&icy;&iecy;-&lcy;&icy;&bcy;&ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ycy; &scy;&vcy;&iecy;&rcy;&khcy; &ecy;&tcy;&ocy;&jcy; &gcy;&lcy;&ucy;&bcy;&icy;&ncy;&ycy;, &acy; &tcy;&acy;&kcy;&zhcy;&iecy; &iecy;&mcy;&ucy; &ncy;&iecy; &ncy;&ucy;&zhcy;&ncy;&ycy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy;, &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ycy;&iecy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &dcy;&lcy;&yacy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&icy;&yacy; &ecy;&tcy;&icy;&khcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;. &Kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ycy;, &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&icy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &vcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&iecy; &ncy;&iecy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&ycy;, &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &kcy;&acy;&kcy; &mcy;&iecy;&lcy;&kcy;&icy;&iecy; &icy; &pcy;&ocy;&mcy;&iecy;&chcy;&acy;&yucy;&tcy;&scy;&yacy; &kcy;&acy;&kcy; &tcy;&acy;&kcy;&ocy;&vcy;&ycy;&iecy; &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&iecy;. &Ecy;&tcy;&acy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yacy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &ocy;&bcy;&rcy;&acy;&tcy;&ncy;&ocy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ucy; &ncy;&acy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&mcy; &ecy;&tcy;&acy;&pcy;&iecy;.</span></p> <p><span data-i18n="3d375e3e2a734003e08fc37548abce851dc258c69a7a80179f887deacaf35a0c/fd" data-source="The client can optionally request that pack-objects omit various objects from the packfile using one of several filtering techniques. These are intended for use with partial clone and partial fetch operations. An object that does not meet a filter-spec value is omitted unless explicitly requested in a &lt;code&gt;want&lt;/code&gt; line. See &lt;code&gt;rev-list&lt;/code&gt; for possible filter-spec values." onmousemove="i18n(this)">&Kcy;&lcy;&icy;&iecy;&ncy;&tcy; &mcy;&ocy;&zhcy;&iecy;&tcy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&icy;&tcy;&softcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy; &pcy;&acy;&kcy;&iecy;&tcy;&acy; &icy;&scy;&kcy;&lcy;&yucy;&chcy;&acy;&lcy;&icy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&ncy;&ycy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy; &icy;&zcy; &fcy;&acy;&jcy;&lcy;&acy; &pcy;&acy;&kcy;&iecy;&tcy;&acy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yacy; &ocy;&dcy;&icy;&ncy; &icy;&zcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&icy;&khcy; &mcy;&iecy;&tcy;&ocy;&dcy;&ocy;&vcy; &fcy;&icy;&lcy;&softcy;&tcy;&rcy;&acy;&tscy;&icy;&icy;. &Ocy;&ncy;&icy; &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&ycy; &dcy;&lcy;&yacy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &scy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&yacy;&mcy;&icy; &chcy;&acy;&scy;&tcy;&icy;&chcy;&ncy;&ocy;&gcy;&ocy; &kcy;&lcy;&ocy;&ncy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &icy; &chcy;&acy;&scy;&tcy;&icy;&chcy;&ncy;&ocy;&jcy; &vcy;&ycy;&bcy;&ocy;&rcy;&kcy;&icy;. &Ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &ncy;&iecy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yucy; &scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&icy; &fcy;&icy;&lcy;&softcy;&tcy;&rcy;&acy;, &ocy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy;, &iecy;&scy;&lcy;&icy; &ecy;&tcy;&ocy; &yacy;&vcy;&ncy;&ocy; &ncy;&iecy; &zcy;&acy;&pcy;&rcy;&ocy;&shcy;&iecy;&ncy;&ocy; &vcy; &scy;&tcy;&rcy;&ocy;&kcy;&iecy;  <code>want</code> . &Scy;&mcy;.  <code>rev-list</code>  &dcy;&lcy;&yacy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ycy;&khcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&jcy; &khcy;&acy;&rcy;&acy;&kcy;&tcy;&iecy;&rcy;&icy;&scy;&tcy;&icy;&kcy; &fcy;&icy;&lcy;&softcy;&tcy;&rcy;&acy;.</span></p> <p><span data-i18n="d1d15ae6d5e354e82017390f68d73e1db657bccaf86000c172ac05fe0a003e93/cb" data-source="Once all the &lt;code&gt;want&amp;rsquo;s and &amp;apos;shallow&amp;rsquo;s (and optional &amp;apos;deepen&lt;/code&gt;) are transferred, clients MUST send a flush-pkt, to tell the server side that it is done sending the list." onmousemove="i18n(this)">&Pcy;&ocy;&scy;&lcy;&iecy; &tcy;&ocy;&gcy;&ocy; &kcy;&acy;&kcy; &vcy;&scy;&iecy;  <code>want&rsquo;s and &apos;shallow&rsquo;s (and optional &apos;deepen</code>  &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&yucy;&tcy;&scy;&yacy;, &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ycy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy; flash-pkt, &chcy;&tcy;&ocy;&bcy;&ycy; &scy;&ocy;&ocy;&bcy;&shchcy;&icy;&tcy;&softcy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ncy;&ocy;&jcy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&iecy;, &chcy;&tcy;&ocy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&acy; &scy;&pcy;&icy;&scy;&kcy;&acy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&acy;.</span></p> <p><span data-i18n="5a565e807c196bac4f35891540e200ae93cc3f75f7e7edae06d5f22119617069/7e" data-source="Otherwise, if the client sent a positive depth request, the server will determine which commits will and will not be shallow and send this information to the client. If the client did not request a positive depth, this step is skipped." onmousemove="i18n(this)">&Vcy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy;, &iecy;&scy;&lcy;&icy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&lcy; &pcy;&ocy;&lcy;&ocy;&zhcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&jcy; &zcy;&acy;&pcy;&rcy;&ocy;&scy; &gcy;&lcy;&ucy;&bcy;&icy;&ncy;&ycy;, &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&icy;&tcy;, &kcy;&acy;&kcy;&icy;&iecy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ycy; &bcy;&ucy;&dcy;&ucy;&tcy;, &acy; &kcy;&acy;&kcy;&icy;&iecy; &ncy;&iecy;&tcy;, &icy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy; &ecy;&tcy;&ucy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ucy;. &IEcy;&scy;&lcy;&icy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &ncy;&iecy; &zcy;&acy;&pcy;&rcy;&acy;&shcy;&icy;&vcy;&acy;&lcy; &pcy;&ocy;&lcy;&ocy;&zhcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ucy;&yucy; &gcy;&lcy;&ucy;&bcy;&icy;&ncy;&ucy;, &ecy;&tcy;&ocy;&tcy; &shcy;&acy;&gcy; &pcy;&rcy;&ocy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy;.</span></p> <div> <div> <pre class="hljs language-python">  shallow-update   =  *shallow-line
                      *unshallow-line
                      flush-pkt

  shallow-line     =  PKT-LINE(<span class="hljs-string">&quot;shallow&quot;</span> SP obj-<span class="hljs-built_in">id</span>)

  unshallow-line   =  PKT-LINE(<span class="hljs-string">&quot;unshallow&quot;</span> SP obj-<span class="hljs-built_in">id</span>)</pre> </div> </div> <p><span data-i18n="542aaa4cdb8b318710dd87c08f3e1e3e1d1e41dcf65ddcb57c07b5dc1a63fcbb/ab" data-source="If the client has requested a positive depth, the server will compute the set of commits which are no deeper than the desired depth. The set of commits starts at the client&amp;rsquo;s wants." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&icy;&lcy; &pcy;&ocy;&lcy;&ocy;&zhcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ucy;&yucy; &gcy;&lcy;&ucy;&bcy;&icy;&ncy;&ucy;, &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &vcy;&ycy;&chcy;&icy;&scy;&lcy;&icy;&tcy; &ncy;&acy;&bcy;&ocy;&rcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;, &gcy;&lcy;&ucy;&bcy;&icy;&ncy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &ncy;&iecy; &pcy;&rcy;&iecy;&vcy;&ycy;&shcy;&acy;&iecy;&tcy; &zhcy;&iecy;&lcy;&acy;&iecy;&mcy;&ocy;&jcy;. &Ncy;&acy;&bcy;&ocy;&rcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy; &ncy;&acy;&chcy;&icy;&ncy;&acy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy; &zhcy;&iecy;&lcy;&acy;&ncy;&icy;&yucy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&acy;.</span></p> <p><span data-i18n="2d1eca91de34d3b4455192a0473d7d9f70ea502a9e6b54d700f5546dff3b6f8b/fc" data-source="The server writes &lt;code&gt;shallow&lt;/code&gt; lines for each commit whose parents will not be sent as a result. The server writes an &lt;code&gt;unshallow&lt;/code&gt; line for each commit which the client has indicated is shallow, but is no longer shallow at the currently requested depth (that is, its parents will now be sent). The server MUST NOT mark as unshallow anything which the client has not indicated was shallow." onmousemove="i18n(this)">&Scy;&iecy;&rcy;&vcy;&iecy;&rcy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;  <code>shallow</code>  &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy;, &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&icy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&gcy;&ocy; &vcy; &rcy;&iecy;&zcy;&ucy;&lcy;&softcy;&tcy;&acy;&tcy;&iecy; &ncy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&ycy;. &Scy;&iecy;&rcy;&vcy;&iecy;&rcy; &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy;  <code>unshallow</code>  &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy;, &pcy;&ocy; &mcy;&ncy;&iecy;&ncy;&icy;&yucy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&acy;, &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&vcy;&iecy;&rcy;&khcy;&ncy;&ocy;&scy;&tcy;&ncy;&ycy;&mcy;, &ncy;&ocy; &bcy;&ocy;&lcy;&softcy;&shcy;&iecy; &ncy;&iecy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&vcy;&iecy;&rcy;&khcy;&ncy;&ocy;&scy;&tcy;&ncy;&ycy;&mcy; &ncy;&acy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&jcy; &zcy;&acy;&pcy;&rcy;&ocy;&shcy;&iecy;&ncy;&ncy;&ocy;&jcy; &gcy;&lcy;&ucy;&bcy;&icy;&ncy;&iecy; (&tcy;&ocy; &iecy;&scy;&tcy;&softcy; &tcy;&iecy;&pcy;&iecy;&rcy;&softcy; &bcy;&ucy;&dcy;&ucy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;&ycy; &iecy;&gcy;&ocy; &rcy;&ocy;&dcy;&icy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&iecy; &ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy;&ycy;). &Scy;&iecy;&rcy;&vcy;&iecy;&rcy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &pcy;&ocy;&mcy;&iecy;&chcy;&acy;&tcy;&softcy; &kcy;&acy;&kcy; &ncy;&iecy;&gcy;&lcy;&ucy;&bcy;&ocy;&kcy;&icy;&jcy; &vcy;&scy;&iecy;, &chcy;&tcy;&ocy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&lcy; &kcy;&acy;&kcy; &mcy;&iecy;&lcy;&kcy;&ocy;&iecy;.</span></p> <p><span data-i18n="48f073f1b30082fee2907296ac1412cd7e0603eee5ab398960b2ccf0c08f603e/ef" data-source="Now the client will send a list of the obj-ids it has using &lt;code&gt;have&lt;/code&gt; lines, so the server can make a packfile that only contains the objects that the client needs. In multi_ack mode, the canonical implementation will send up to 32 of these at a time, then will send a flush-pkt. The canonical implementation will skip ahead and send the next 32 immediately, so that there is always a block of 32 &amp;quot;in-flight on the wire&amp;quot; at a time." onmousemove="i18n(this)">&Tcy;&iecy;&pcy;&iecy;&rcy;&softcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &icy;&mcy;&iecy;&yucy;&shchcy;&icy;&khcy;&scy;&yacy; &ucy; &ncy;&iecy;&gcy;&ocy; obj-id, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yacy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;  <code>have</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &mcy;&ocy;&gcy; &scy;&ocy;&zcy;&dcy;&acy;&tcy;&softcy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy;, &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&shchcy;&icy;&jcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &tcy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ncy;&ucy;&zhcy;&ncy;&ycy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ucy;. &Vcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; multi_ack &kcy;&acy;&ncy;&ocy;&ncy;&icy;&chcy;&iecy;&scy;&kcy;&acy;&yacy; &rcy;&iecy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&yacy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy; &dcy;&ocy; 32 &tcy;&acy;&kcy;&icy;&khcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&jcy; &ocy;&dcy;&ncy;&ocy;&vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy;, &acy; &zcy;&acy;&tcy;&iecy;&mcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy; &fcy;&lcy;&iecy;&shcy;-&pcy;&kcy;&tcy;. &Kcy;&acy;&ncy;&ocy;&ncy;&icy;&chcy;&iecy;&scy;&kcy;&acy;&yacy; &rcy;&iecy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&yacy; &pcy;&rcy;&ocy;&pcy;&ucy;&scy;&tcy;&icy;&tcy; &vcy;&pcy;&iecy;&rcy;&iecy;&dcy; &icy; &ncy;&iecy;&mcy;&iecy;&dcy;&lcy;&iecy;&ncy;&ncy;&ocy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&iecy; 32, &tcy;&acy;&kcy; &chcy;&tcy;&ocy; &ocy;&dcy;&ncy;&ocy;&vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy; &vcy;&scy;&iecy;&gcy;&dcy;&acy; &bcy;&ucy;&dcy;&iecy;&tcy; &bcy;&lcy;&ocy;&kcy; &icy;&zcy; 32  &quot;in-flight on the wire&quot; .</span></p> <div> <div> <pre class="hljs language-lua">  upload-haves      =  have-list
                       compute-<span class="hljs-keyword">end</span>

  have-list         =  *have-line
  have-line         =  PKT-LINE(<span class="hljs-string">&quot;have&quot;</span> SP obj-id)
  compute-<span class="hljs-keyword">end</span>       =  <span class="hljs-built_in">flush</span>-pkt / PKT-LINE(<span class="hljs-string">&quot;done&quot;</span>)</pre> </div> </div> <p><span data-i18n="c195552288f3b2feb2f912902e098a4706c5ca53ba98eb0a51fff24de8d08060/95" data-source="If the server reads &lt;code&gt;have&lt;/code&gt; lines, it then will respond by ACKing any of the obj-ids the client said it had that the server also has. The server will ACK obj-ids differently depending on which ack mode is chosen by the client." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &chcy;&icy;&tcy;&acy;&iecy;&tcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;  <code>have</code> , &ocy;&ncy; &zcy;&acy;&tcy;&iecy;&mcy; &ocy;&tcy;&vcy;&iecy;&tcy;&icy;&tcy; &pcy;&ocy;&dcy;&tcy;&vcy;&iecy;&rcy;&zhcy;&dcy;&iecy;&ncy;&icy;&iecy;&mcy; &lcy;&yucy;&bcy;&ocy;&gcy;&ocy; &icy;&zcy; obj-id, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy;, &pcy;&ocy; &scy;&lcy;&ocy;&vcy;&acy;&mcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&acy;, &icy;&mcy;&iecy;&yucy;&tcy;&scy;&yacy; &icy; &ucy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy;. &Scy;&iecy;&rcy;&vcy;&iecy;&rcy; &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&ocy;&dcy;&tcy;&vcy;&iecy;&rcy;&zhcy;&dcy;&acy;&tcy;&softcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy; &pcy;&ocy;-&rcy;&acy;&zcy;&ncy;&ocy;&mcy;&ucy; &vcy; &zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &ocy;&tcy; &tcy;&ocy;&gcy;&ocy;, &kcy;&acy;&kcy;&ocy;&jcy; &rcy;&iecy;&zhcy;&icy;&mcy; &pcy;&ocy;&dcy;&tcy;&vcy;&iecy;&rcy;&zhcy;&dcy;&iecy;&ncy;&icy;&yacy; &vcy;&ycy;&bcy;&rcy;&acy;&ncy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ocy;&mcy;.</span></p> <p><span data-i18n="23784d1aa90be7aea2462c7b14ce73db601bd031167b05d2edbc5a1e588aaf8e/df" data-source="In multi_ack mode:" onmousemove="i18n(this)">&Vcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; multi_ack:</span></p> <div> <ul> <li> <p><span data-i18n="95135d85cedfe887d87f7d14d148f488a7808c3ad39007e78911c37d9b4f5810/e3" data-source="the server will respond with &lt;code&gt;ACK obj-id continue&lt;/code&gt; for any common commits." onmousemove="i18n(this)">&scy;&iecy;&rcy;&vcy;&iecy;&rcy; &ocy;&tcy;&vcy;&iecy;&tcy;&icy;&tcy;  <code>ACK obj-id continue</code>  &dcy;&lcy;&yacy; &lcy;&yucy;&bcy;&ycy;&khcy; &rcy;&acy;&scy;&pcy;&rcy;&ocy;&scy;&tcy;&rcy;&acy;&ncy;&iecy;&ncy;&ncy;&ycy;&khcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;.</span></p> </li> <li> <p><span data-i18n="699b77656ebddda1f76cff2bb6e44d0973fc0b04d7b02b5caf5d574aeed5efb1/70" data-source="once the server has found an acceptable common base commit and is ready to make a packfile, it will blindly ACK all &lt;code&gt;have&lt;/code&gt; obj-ids back to the client." onmousemove="i18n(this)">&Kcy;&acy;&kcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &ncy;&acy;&jcy;&dcy;&iecy;&tcy; &pcy;&rcy;&icy;&iecy;&mcy;&lcy;&iecy;&mcy;&ucy;&yucy; &ocy;&bcy;&shchcy;&ucy;&yucy; &bcy;&acy;&zcy;&ocy;&vcy;&ucy;&yucy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&yucy; &icy; &bcy;&ucy;&dcy;&iecy;&tcy; &gcy;&ocy;&tcy;&ocy;&vcy; &scy;&ocy;&zcy;&dcy;&acy;&tcy;&softcy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy;, &ocy;&ncy; &vcy;&scy;&lcy;&iecy;&pcy;&ucy;&yucy; &pcy;&ocy;&dcy;&tcy;&vcy;&iecy;&rcy;&dcy;&icy;&tcy; &vcy;&scy;&iecy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy;&ycy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy;  <code>have</code>  &ocy;&bcy;&rcy;&acy;&tcy;&ncy;&ocy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ucy;.</span></p> </li> <li> <p><span data-i18n="845f67b10b0714516c3c5f8df8728cf984a407ea560a77a4b1bb52ff5a808eec/b4" data-source="the server will then send a &lt;code&gt;NAK&lt;/code&gt; and then wait for another response from the client - either a &lt;code&gt;done&lt;/code&gt; or another list of &lt;code&gt;have&lt;/code&gt; lines." onmousemove="i18n(this)">&zcy;&acy;&tcy;&iecy;&mcy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;  <code>NAK</code> , &acy; &zcy;&acy;&tcy;&iecy;&mcy; &dcy;&ocy;&zhcy;&dcy;&iecy;&tcy;&scy;&yacy; &dcy;&rcy;&ucy;&gcy;&ocy;&gcy;&ocy; &ocy;&tcy;&vcy;&iecy;&tcy;&acy; &ocy;&tcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&acy; &mdash; &lcy;&icy;&bcy;&ocy;  <code>done</code> , &lcy;&icy;&bcy;&ocy; &dcy;&rcy;&ucy;&gcy;&ocy;&gcy;&ocy; &scy;&pcy;&icy;&scy;&kcy;&acy; &scy;&tcy;&rcy;&ocy;&kcy;  <code>have</code> .</span></p> </li> </ul> </div> <p><span data-i18n="61e8f9b131511917416f9f9e130b48ccd732ec130fb83c72a007e38669a6c48f/dd" data-source="In multi_ack_detailed mode:" onmousemove="i18n(this)">&Vcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy; multi_ack_detailed:</span></p> <div> <ul> <li> <p><span data-i18n="6404e7a69288fe874c464fd758080e088bcde1270fe40185f4e0a5fd68bcdbf7/15" data-source="the server will differentiate the ACKs where it is signaling that it is ready to send data with &lt;code&gt;ACK obj-id ready&lt;/code&gt; lines, and signals the identified common commits with &lt;code&gt;ACK obj-id common&lt;/code&gt; lines." onmousemove="i18n(this)">&scy;&iecy;&rcy;&vcy;&iecy;&rcy; &bcy;&ucy;&dcy;&iecy;&tcy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&acy;&tcy;&softcy; ACK, &gcy;&dcy;&iecy; &ocy;&ncy; &scy;&icy;&gcy;&ncy;&acy;&lcy;&icy;&zcy;&icy;&rcy;&ucy;&iecy;&tcy; &ocy; &gcy;&ocy;&tcy;&ocy;&vcy;&ncy;&ocy;&scy;&tcy;&icy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &scy;&tcy;&rcy;&ocy;&kcy;  <code>ACK obj-id ready</code> , &icy; &scy;&icy;&gcy;&ncy;&acy;&lcy;&icy;&zcy;&icy;&rcy;&ucy;&iecy;&tcy; &ocy;&bcy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&ncy;&ycy;&khcy; &ocy;&bcy;&shchcy;&icy;&khcy; &fcy;&icy;&kcy;&scy;&acy;&tscy;&icy;&icy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &scy;&tcy;&rcy;&ocy;&kcy;  <code>ACK obj-id common</code> .</span></p> </li> </ul> </div> <p><span data-i18n="789925f1fd3ffce7be0e7e9daca569e2638a59c3b8cda26682efc6604813f8b7/32" data-source="Without either multi_ack or multi_ack_detailed:" onmousemove="i18n(this)">&Bcy;&iecy;&zcy; multi_ack &icy;&lcy;&icy; multi_ack_detailed:</span></p> <div> <ul> <li> <p><span data-i18n="ab3f41c60cbe2245fc65724b8b0c11a28602f7ead0c32385442144feb1df360e/32" data-source="upload-pack sends &amp;quot;ACK obj-id&amp;quot; on the first common object it finds. After that it says nothing until the client gives it a &amp;quot;done&amp;quot;." onmousemove="i18n(this)">upload-pack &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;  &quot;ACK obj-id&quot;  &ncy;&acy; &pcy;&iecy;&rcy;&vcy;&ycy;&jcy; &ncy;&acy;&jcy;&dcy;&iecy;&ncy;&ncy;&ycy;&jcy; &ocy;&bcy;&shchcy;&icy;&jcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;. &Pcy;&ocy;&scy;&lcy;&iecy; &ecy;&tcy;&ocy;&gcy;&ocy; &ocy;&ncy; &ncy;&icy;&chcy;&iecy;&gcy;&ocy; &ncy;&iecy; &gcy;&ocy;&vcy;&ocy;&rcy;&icy;&tcy;, &pcy;&ocy;&kcy;&acy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &ncy;&iecy; &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&icy;&tcy; &iecy;&mcy;&ucy;  &quot;done&quot; .</span></p> </li> <li> <p><span data-i18n="0d6172f50877083eea099ae2e891123eef2f8211d93f765ff6e02561863c5eeb/f1" data-source="upload-pack sends &amp;quot;NAK&amp;quot; on a flush-pkt if no common object has been found yet. If one has been found, and thus an ACK was already sent, it&amp;rsquo;s silent on the flush-pkt." onmousemove="i18n(this)">upload-pack &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy;  &quot;NAK&quot;  &ncy;&acy; &fcy;&lcy;&iecy;&shcy;-&pcy;&acy;&kcy;&iecy;&tcy;, &iecy;&scy;&lcy;&icy; &ocy;&bcy;&shchcy;&icy;&jcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy; &iecy;&shchcy;&iecy; &ncy;&iecy; &ncy;&acy;&jcy;&dcy;&iecy;&ncy;. &IEcy;&scy;&lcy;&icy; &ocy;&ncy; &bcy;&ycy;&lcy; &ncy;&acy;&jcy;&dcy;&iecy;&ncy; &icy;, &scy;&lcy;&iecy;&dcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;, ACK &ucy;&zhcy;&iecy; &bcy;&ycy;&lcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;, &ncy;&acy; &fcy;&lcy;&iecy;&shcy;-&pcy;&kcy;&tcy;&iecy; &ncy;&icy;&chcy;&iecy;&gcy;&ocy; &ncy;&iecy; &pcy;&rcy;&ocy;&icy;&scy;&khcy;&ocy;&dcy;&icy;&tcy;.</span></p> </li> </ul> </div> <p><span data-i18n="e7b0db7cadcbcd5ac6777166cdb9bb83f7d769bfca0648e43cd8f4478b7acbf1/1f" data-source="After the client has gotten enough ACK responses that it can determine that the server has enough information to send an efficient packfile (in the canonical implementation, this is determined when it has received enough ACKs that it can color everything left in the --date-order queue as common with the server, or the --date-order queue is empty), or the client determines that it wants to give up (in the canonical implementation, this is determined when the client sends 256 &lt;code&gt;have&lt;/code&gt; lines without getting any of them ACKed by the server - meaning there is nothing in common and the server should just send all of its objects), then the client will send a &lt;code&gt;done&lt;/code&gt; command. The &lt;code&gt;done&lt;/code&gt; command signals to the server that the client is ready to receive its packfile data." onmousemove="i18n(this)">&Pcy;&ocy;&scy;&lcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &kcy;&acy;&kcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&lcy; &dcy;&ocy;&scy;&tcy;&acy;&tcy;&ocy;&chcy;&ncy;&ocy; &ocy;&tcy;&vcy;&iecy;&tcy;&ocy;&vcy; ACK, &ocy;&ncy; &mcy;&ocy;&zhcy;&iecy;&tcy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&icy;&tcy;&softcy;, &chcy;&tcy;&ocy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &icy;&mcy;&iecy;&iecy;&tcy; &dcy;&ocy;&scy;&tcy;&acy;&tcy;&ocy;&chcy;&ncy;&ocy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy; &dcy;&lcy;&yacy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&icy; &ecy;&fcy;&fcy;&iecy;&kcy;&tcy;&icy;&vcy;&ncy;&ocy;&gcy;&ocy; &pcy;&acy;&kcy;&ocy;&vcy;&ocy;&chcy;&ncy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy; (&vcy; &kcy;&acy;&ncy;&ocy;&ncy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&jcy; &rcy;&iecy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &ecy;&tcy;&ocy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy; &ocy;&ncy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&lcy; &dcy;&ocy;&scy;&tcy;&acy;&tcy;&ocy;&chcy;&ncy;&ocy; ACK, &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&ncy; &mcy;&ocy;&gcy; &rcy;&acy;&scy;&kcy;&rcy;&acy;&scy;&icy;&tcy;&softcy; &vcy;&scy;&iecy;, &chcy;&tcy;&ocy; &ocy;&scy;&tcy;&acy;&lcy;&ocy;&scy;&softcy; &vcy; --date- &ocy;&chcy;&iecy;&rcy;&iecy;&dcy;&softcy; &zcy;&acy;&kcy;&acy;&zcy;&ocy;&vcy; &kcy;&acy;&kcy; &ocy;&bcy;&shchcy;&acy;&yacy; &scy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ocy;&mcy;, &icy;&lcy;&icy; &ocy;&chcy;&iecy;&rcy;&iecy;&dcy;&softcy; --date-order &pcy;&ucy;&scy;&tcy;&acy;), &icy;&lcy;&icy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy;, &chcy;&tcy;&ocy; &khcy;&ocy;&chcy;&iecy;&tcy; &scy;&dcy;&acy;&tcy;&softcy;&scy;&yacy; (&vcy; &kcy;&acy;&ncy;&ocy;&ncy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&jcy; &rcy;&iecy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &ecy;&tcy;&ocy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; 256 &scy;&tcy;&rcy;&ocy;&kcy;  <code>have</code> , &ncy;&iecy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&vcy; &ncy;&icy; &ocy;&dcy;&ncy;&ocy;&jcy; &icy;&zcy; &ocy;&ncy;&icy; &pcy;&ocy;&dcy;&tcy;&vcy;&iecy;&rcy;&zhcy;&dcy;&iecy;&ncy;&ycy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ocy;&mcy; - &ecy;&tcy;&ocy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &ncy;&iecy;&tcy; &ncy;&icy;&chcy;&iecy;&gcy;&ocy; &ocy;&bcy;&shchcy;&iecy;&gcy;&ocy;, &icy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy; &vcy;&scy;&iecy; &scy;&vcy;&ocy;&icy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy;), &tcy;&ocy;&gcy;&dcy;&acy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;  <code>done</code> . &Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>done</code>  &scy;&icy;&gcy;&ncy;&acy;&lcy;&icy;&zcy;&icy;&rcy;&ucy;&iecy;&tcy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ucy;, &chcy;&tcy;&ocy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &gcy;&ocy;&tcy;&ocy;&vcy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&tcy;&softcy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &scy;&vcy;&ocy;&iecy;&gcy;&ocy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy;.</span></p> <p><span data-i18n="f88d41bc723ded848128d1fd50daa1d1528e3e825da8e7376f90d419a5b9733a/c5" data-source="However, the 256 limit &lt;strong&gt;only&lt;/strong&gt; turns on in the canonical client implementation if we have received at least one &amp;quot;ACK %s continue&amp;quot; during a prior round. This helps to ensure that at least one common ancestor is found before we give up entirely." onmousemove="i18n(this)">&Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&iecy;&ncy;&icy;&iecy; &vcy; 256 &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&iecy;&tcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy; &rcy;&iecy;&acy;&lcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &kcy;&acy;&ncy;&ocy;&ncy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&gcy;&ocy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&acy;, &iecy;&scy;&lcy;&icy; &mcy;&ycy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&lcy;&icy; &khcy;&ocy;&tcy;&yacy; &bcy;&ycy; &ocy;&dcy;&icy;&ncy;  &quot;ACK %s continue&quot;  &vcy; &tcy;&iecy;&chcy;&iecy;&ncy;&icy;&iecy; &pcy;&rcy;&iecy;&dcy;&ycy;&dcy;&ucy;&shchcy;&iecy;&gcy;&ocy; &rcy;&acy;&ucy;&ncy;&dcy;&acy;. &Ecy;&tcy;&ocy; &pcy;&ocy;&mcy;&ocy;&gcy;&acy;&iecy;&tcy; &gcy;&acy;&rcy;&acy;&ncy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy;, &chcy;&tcy;&ocy; &bcy;&ucy;&dcy;&iecy;&tcy; &ncy;&acy;&jcy;&dcy;&iecy;&ncy; &khcy;&ocy;&tcy;&yacy; &bcy;&ycy; &ocy;&dcy;&icy;&ncy; &ocy;&bcy;&shchcy;&icy;&jcy; &pcy;&rcy;&iecy;&dcy;&ocy;&kcy;, &pcy;&rcy;&iecy;&zhcy;&dcy;&iecy; &chcy;&iecy;&mcy; &mcy;&ycy; &pcy;&ocy;&lcy;&ncy;&ocy;&scy;&tcy;&softcy;&yucy; &scy;&dcy;&acy;&dcy;&icy;&mcy;&scy;&yacy;.</span></p> <p><span data-i18n="6785158b233f38c9e895f42ea0e4682651dd8d0d422b074210e4cc85a311ac67/ef" data-source="Once the &lt;code&gt;done&lt;/code&gt; line is read from the client, the server will either send a final &lt;code&gt;ACK obj-id&lt;/code&gt; or it will send a &lt;code&gt;NAK&lt;/code&gt;. &lt;code&gt;obj-id&lt;/code&gt; is the object name of the last commit determined to be common. The server only sends ACK after &lt;code&gt;done&lt;/code&gt; if there is at least one common base and multi_ack or multi_ack_detailed is enabled. The server always sends NAK after &lt;code&gt;done&lt;/code&gt; if there is no common base found." onmousemove="i18n(this)">&Kcy;&acy;&kcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &scy;&tcy;&rcy;&ocy;&kcy;&acy;  <code>done</code>  &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&rcy;&ocy;&chcy;&icy;&tcy;&acy;&ncy;&acy; &ocy;&tcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&acy;, &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &lcy;&icy;&bcy;&ocy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy; &ocy;&kcy;&ocy;&ncy;&chcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&jcy;  <code>ACK obj-id</code> , &lcy;&icy;&bcy;&ocy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;  <code>NAK</code> .  <code>obj-id</code>  &mdash; &ecy;&tcy;&ocy; &icy;&mcy;&yacy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&iecy;&gcy;&ocy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&acy;, &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &kcy;&acy;&kcy; &ocy;&bcy;&shchcy;&icy;&jcy;. &Scy;&iecy;&rcy;&vcy;&iecy;&rcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; ACK &pcy;&ocy;&scy;&lcy;&iecy;  <code>done</code>  &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy; &tcy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy;, &iecy;&scy;&lcy;&icy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &khcy;&ocy;&tcy;&yacy; &bcy;&ycy; &ocy;&dcy;&ncy;&acy; &ocy;&bcy;&shchcy;&acy;&yacy; &bcy;&acy;&zcy;&acy; &icy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy; multi_ack &icy;&lcy;&icy; multi_ack_detailed. &Scy;&iecy;&rcy;&vcy;&iecy;&rcy; &vcy;&scy;&iecy;&gcy;&dcy;&acy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; NAK &pcy;&ocy;&scy;&lcy;&iecy;  <code>done</code> , &iecy;&scy;&lcy;&icy; &ncy;&iecy; &ncy;&acy;&jcy;&dcy;&iecy;&ncy;&acy; &ocy;&bcy;&shchcy;&acy;&yacy; &bcy;&acy;&zcy;&acy;.</span></p> <p><span data-i18n="33cc68eeef59650217b5186e8b1b6162134941c45ef015e4d2cfd75851d8ad3d/cc" data-source="Instead of &lt;code&gt;ACK&lt;/code&gt; or &lt;code&gt;NAK&lt;/code&gt;, the server may send an error message (for example, if it does not recognize an object in a &lt;code&gt;want&lt;/code&gt; line received from the client)." onmousemove="i18n(this)">&Vcy;&mcy;&iecy;&scy;&tcy;&ocy;  <code>ACK</code>  &icy;&lcy;&icy;  <code>NAK</code>  &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &mcy;&ocy;&zhcy;&iecy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy; &scy;&ocy;&ocy;&bcy;&shchcy;&iecy;&ncy;&icy;&iecy; &ocy;&bcy; &ocy;&shcy;&icy;&bcy;&kcy;&iecy; (&ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy; &ncy;&iecy; &rcy;&acy;&scy;&pcy;&ocy;&zcy;&ncy;&acy;&iecy;&tcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy; &vcy; &scy;&tcy;&rcy;&ocy;&kcy;&iecy;  <code>want</code> , &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&ncy;&ocy;&jcy; &ocy;&tcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&acy;).</span></p> <p><span data-i18n="ae5bd573c4e74194c622e34e04a3f1d5ef50806c292b2ac727a402eb1b9ba794/73" data-source="Then the server will start sending its packfile data." onmousemove="i18n(this)">&Zcy;&acy;&tcy;&iecy;&mcy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &ncy;&acy;&chcy;&ncy;&iecy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &scy;&vcy;&ocy;&iecy;&gcy;&ocy; &pcy;&acy;&kcy;&ocy;&vcy;&ocy;&chcy;&ncy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy;.</span></p> <div> <div> <pre class="hljs language-ini">  <span class="hljs-attr">server-response</span> = *ack_multi ack / nak
  <span class="hljs-attr">ack_multi</span>       = PKT-LINE(<span class="hljs-string">&quot;ACK&quot;</span> SP obj-id ack_status)
  <span class="hljs-attr">ack_status</span>      = <span class="hljs-string">&quot;continue&quot;</span> / <span class="hljs-string">&quot;common&quot;</span> / <span class="hljs-string">&quot;ready&quot;</span>
  <span class="hljs-attr">ack</span>             = PKT-LINE(<span class="hljs-string">&quot;ACK&quot;</span> SP obj-id)
  <span class="hljs-attr">nak</span>             = PKT-LINE(<span class="hljs-string">&quot;NAK&quot;</span>)</pre> </div> </div> <p><span data-i18n="5be6aa37a226c605703d2a1fc8ebbb6632031a98ef716ba0351d289044fc431b/01" data-source="A simple clone may look like this (with no &lt;code&gt;have&lt;/code&gt; lines):" onmousemove="i18n(this)">&Pcy;&rcy;&ocy;&scy;&tcy;&ocy;&jcy; &kcy;&lcy;&ocy;&ncy; &mcy;&ocy;&zhcy;&iecy;&tcy; &vcy;&ycy;&gcy;&lcy;&yacy;&dcy;&iecy;&tcy;&softcy; &tcy;&acy;&kcy; (&bcy;&iecy;&zcy; &scy;&tcy;&rcy;&ocy;&kcy;  <code>have</code> ):</span></p> <div> <div> <pre class="hljs language-yaml">   <span class="hljs-attr">C:</span> <span class="hljs-string">0054want</span> <span class="hljs-string">74730d410fcb6603ace96f1dc55ea6196122532d</span> <span class="hljs-string">multi_ack</span> <span class="hljs-string">\</span>
     <span class="hljs-string">side-band-64k</span> <span class="hljs-string">ofs-delta\n</span>
   <span class="hljs-attr">C:</span> <span class="hljs-string">0032want</span> <span class="hljs-string">7d1665144a3a975c05f1f43902ddaf084e784dbe\n</span>
   <span class="hljs-attr">C:</span> <span class="hljs-string">0032want</span> <span class="hljs-string">5a3f6be755bbb7deae50065988cbfa1ffa9ab68a\n</span>
   <span class="hljs-attr">C:</span> <span class="hljs-string">0032want</span> <span class="hljs-string">7e47fe2bd8d01d481f44d7af0531bd93d3b21c01\n</span>
   <span class="hljs-attr">C:</span> <span class="hljs-string">0032want</span> <span class="hljs-string">74730d410fcb6603ace96f1dc55ea6196122532d\n</span>
   <span class="hljs-attr">C:</span> <span class="hljs-number">0000</span>
   <span class="hljs-attr">C:</span> <span class="hljs-string">0009done\n</span>

   <span class="hljs-attr">S:</span> <span class="hljs-string">0008NAK\n</span>
   <span class="hljs-attr">S:</span> [<span class="hljs-string">PACKFILE</span>]</pre> </div> </div> <p><span data-i18n="da3ada14abcfc26c5254ea5ca50531d94389830824935dd203df68bb577047ae/65" data-source="An incremental update (fetch) response might look like this:" onmousemove="i18n(this)">&Ocy;&tcy;&vcy;&iecy;&tcy; &ncy;&acy; &icy;&ncy;&kcy;&rcy;&iecy;&mcy;&iecy;&ncy;&tcy;&acy;&lcy;&softcy;&ncy;&ocy;&iecy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; (&vcy;&ycy;&bcy;&ocy;&rcy;&kcy;&ucy;) &mcy;&ocy;&zhcy;&iecy;&tcy; &vcy;&ycy;&gcy;&lcy;&yacy;&dcy;&iecy;&tcy;&softcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy;:</span></p> <div> <div> <pre class="hljs language-yaml">   <span class="hljs-attr">C:</span> <span class="hljs-string">0054want</span> <span class="hljs-string">74730d410fcb6603ace96f1dc55ea6196122532d</span> <span class="hljs-string">multi_ack</span> <span class="hljs-string">\</span>
     <span class="hljs-string">side-band-64k</span> <span class="hljs-string">ofs-delta\n</span>
   <span class="hljs-attr">C:</span> <span class="hljs-string">0032want</span> <span class="hljs-string">7d1665144a3a975c05f1f43902ddaf084e784dbe\n</span>
   <span class="hljs-attr">C:</span> <span class="hljs-string">0032want</span> <span class="hljs-string">5a3f6be755bbb7deae50065988cbfa1ffa9ab68a\n</span>
   <span class="hljs-attr">C:</span> <span class="hljs-number">0000</span>
   <span class="hljs-attr">C:</span> <span class="hljs-string">0032have</span> <span class="hljs-string">7e47fe2bd8d01d481f44d7af0531bd93d3b21c01\n</span>
   <span class="hljs-attr">C:</span> [<span class="hljs-number">30</span> <span class="hljs-string">more</span> <span class="hljs-string">have</span> <span class="hljs-string">lines</span>]
   <span class="hljs-attr">C:</span> <span class="hljs-string">0032have</span> <span class="hljs-string">74730d410fcb6603ace96f1dc55ea6196122532d\n</span>
   <span class="hljs-attr">C:</span> <span class="hljs-number">0000</span>

   <span class="hljs-attr">S:</span> <span class="hljs-string">003aACK</span> <span class="hljs-string">7e47fe2bd8d01d481f44d7af0531bd93d3b21c01</span> <span class="hljs-string">continue\n</span>
   <span class="hljs-attr">S:</span> <span class="hljs-string">003aACK</span> <span class="hljs-string">74730d410fcb6603ace96f1dc55ea6196122532d</span> <span class="hljs-string">continue\n</span>
   <span class="hljs-attr">S:</span> <span class="hljs-string">0008NAK\n</span>

   <span class="hljs-attr">C:</span> <span class="hljs-string">0009done\n</span>

   <span class="hljs-attr">S:</span> <span class="hljs-string">0031ACK</span> <span class="hljs-string">74730d410fcb6603ace96f1dc55ea6196122532d\n</span>
   <span class="hljs-attr">S:</span> [<span class="hljs-string">PACKFILE</span>]</pre> </div> </div> </div> <h2 class="text-body-emphasis"  id="_packfile_data"><span data-i18n="89d4140ff226f4d0426ce0896e3bfce7333286bedd3474973fd26705d3582210/a3" data-source="Packfile data" onmousemove="i18n(this)">Packfile data</span></h2> <div> <p><span data-i18n="768aed428ba954e3351d3f060ea92bba4dc3d634ddd63873e3307f0ca00082ac/c1" data-source="Now that the client and server have finished negotiation about what the minimal amount of data that needs to be sent to the client is, the server will construct and send the required data in packfile format." onmousemove="i18n(this)">&Tcy;&iecy;&pcy;&iecy;&rcy;&softcy;, &kcy;&ocy;&gcy;&dcy;&acy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &icy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&icy;&lcy;&icy; &scy;&ocy;&gcy;&lcy;&acy;&scy;&ocy;&vcy;&acy;&ncy;&icy;&iecy; &mcy;&icy;&ncy;&icy;&mcy;&acy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&mcy;&acy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ucy;, &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &scy;&ocy;&zcy;&dcy;&acy;&scy;&tcy; &icy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ycy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &vcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy;.</span></p> <p><span data-i18n="3f1289ac89e10ec9bd8d89b6c88026e289d6c7ab62613bf9813e65a677ec3d6d/af" data-source="See &lt;a href=&quot;gitformat-pack&quot;&gt;gitformat-pack[5]&lt;/a&gt; for what the packfile itself actually looks like." onmousemove="i18n(this)">&Scy;&mcy;.  <a href="gitformat-pack.html">gitformat-pack[5]</a> , &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&zcy;&ncy;&acy;&tcy;&softcy;, &kcy;&acy;&kcy; &ncy;&acy; &scy;&acy;&mcy;&ocy;&mcy; &dcy;&iecy;&lcy;&iecy; &vcy;&ycy;&gcy;&lcy;&yacy;&dcy;&icy;&tcy; &scy;&acy;&mcy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy;.</span></p> <p><span data-i18n="92dd413191826eaa9cd0e210b3c59638a519fd924f5bc4da0fde488274a930c3/87" data-source="If &lt;code&gt;side-band&lt;/code&gt; or &lt;code&gt;side-band-64k&lt;/code&gt; capabilities have been specified by the client, the server will send the packfile data multiplexed." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&icy;  <code>side-band</code>  &icy;&lcy;&icy;  <code>side-band-64k</code>  &bcy;&ycy;&lcy;&icy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ycy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ocy;&mcy;, &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy; &vcy; &mcy;&ucy;&lcy;&softcy;&tcy;&icy;&pcy;&lcy;&iecy;&kcy;&scy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ocy;&mcy; &vcy;&icy;&dcy;&iecy;.</span></p> <p><span data-i18n="e9e52faaf04833f2ae7d345d906d9193dc0afc5985f819c9616a28be5fecdb6c/1e" data-source="Each packet starting with the packet-line length of the amount of data that follows, followed by a single byte specifying the sideband the following data is coming in on." onmousemove="i18n(this)">&Kcy;&acy;&zhcy;&dcy;&ycy;&jcy; &pcy;&acy;&kcy;&iecy;&tcy; &ncy;&acy;&chcy;&icy;&ncy;&acy;&iecy;&tcy;&scy;&yacy; &scy; &dcy;&lcy;&icy;&ncy;&ycy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &pcy;&acy;&kcy;&iecy;&tcy;&acy;, &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&iecy;&jcy; &ocy;&bcy;&hardcy;&iecy;&mcy;&ucy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&khcy; &zcy;&acy; &ncy;&icy;&mcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;, &zcy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&mcy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &ocy;&dcy;&icy;&ncy; &bcy;&acy;&jcy;&tcy;, &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&yucy;&shchcy;&icy;&jcy; &bcy;&ocy;&kcy;&ocy;&vcy;&ucy;&yucy; &pcy;&ocy;&lcy;&ocy;&scy;&ucy;, &pcy;&ocy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&jcy; &pcy;&ocy;&scy;&tcy;&ucy;&pcy;&acy;&yucy;&tcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy;.</span></p> <p><span data-i18n="7e13d36ca4b4c505b6089392f906061590a9ba4ff38dcac68a20ece02501f1bc/4f" data-source="In &lt;code&gt;side-band&lt;/code&gt; mode, it will send up to 999 data bytes plus 1 control code, for a total of up to 1000 bytes in a pkt-line. In &lt;code&gt;side-band-64k&lt;/code&gt; mode it will send up to 65519 data bytes plus 1 control code, for a total of up to 65520 bytes in a pkt-line." onmousemove="i18n(this)">&Vcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy;  <code>side-band</code>  &ocy;&ncy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy; &dcy;&ocy; 999 &bcy;&acy;&jcy;&tcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &pcy;&lcy;&yucy;&scy; 1 &ucy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&yucy;&shchcy;&icy;&jcy; &kcy;&ocy;&dcy;, &vcy;&scy;&iecy;&gcy;&ocy; &dcy;&ocy; 1000 &bcy;&acy;&jcy;&tcy; &vcy; pkt-&lcy;&icy;&ncy;&icy;&icy;. &Vcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy;  <code>side-band-64k</code>  &ocy;&ncy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy; &dcy;&ocy; 65519 &bcy;&acy;&jcy;&tcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &pcy;&lcy;&yucy;&scy; 1 &ucy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&yucy;&shchcy;&icy;&jcy; &kcy;&ocy;&dcy;, &vcy;&scy;&iecy;&gcy;&ocy; &dcy;&ocy; 65520 &bcy;&acy;&jcy;&tcy; &vcy; pkt-&lcy;&icy;&ncy;&icy;&icy;.</span></p> <p><span data-i18n="eececa899f00ea0c27214942c77cba93e7c8c482aa6f4a8a25c6ff700f8f044f/4b" data-source="The sideband byte will be a &lt;code&gt;1&lt;/code&gt;, &lt;code&gt;2&lt;/code&gt; or a &lt;code&gt;3&lt;/code&gt;. Sideband &lt;code&gt;1&lt;/code&gt; will contain packfile data, sideband &lt;code&gt;2&lt;/code&gt; will be used for progress information that the client will generally print to stderr and sideband &lt;code&gt;3&lt;/code&gt; is used for error information." onmousemove="i18n(this)">&Bcy;&acy;&jcy;&tcy; &bcy;&ocy;&kcy;&ocy;&vcy;&ocy;&jcy; &pcy;&ocy;&lcy;&ocy;&scy;&ycy; &bcy;&ucy;&dcy;&iecy;&tcy;  <code>1</code> ,  <code>2</code>  &icy;&lcy;&icy;  <code>3</code> . &Bcy;&ocy;&kcy;&ocy;&vcy;&acy;&yacy; &pcy;&ocy;&lcy;&ocy;&scy;&acy;  <code>1</code>  &bcy;&ucy;&dcy;&iecy;&tcy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&tcy;&softcy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy;, &bcy;&ocy;&kcy;&ocy;&vcy;&acy;&yacy; &pcy;&ocy;&lcy;&ocy;&scy;&acy;  <code>2</code>  &bcy;&ucy;&dcy;&iecy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &dcy;&lcy;&yacy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy; &ocy; &khcy;&ocy;&dcy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ucy;&yucy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &vcy;&ycy;&vcy;&ocy;&dcy;&icy;&tcy; &ncy;&acy; &scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&jcy; &pcy;&ocy;&tcy;&ocy;&kcy; &ocy;&shcy;&icy;&bcy;&ocy;&kcy;, &acy; &bcy;&ocy;&kcy;&ocy;&vcy;&acy;&yacy; &pcy;&ocy;&lcy;&ocy;&scy;&acy;  <code>3</code>  &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy; &ocy;&bcy; &ocy;&shcy;&icy;&bcy;&kcy;&acy;&khcy;.</span></p> <p><span data-i18n="649f27a17d4da5fb4dba3e136d01a23f250a78209f82de74c335e3678f772e05/8a" data-source="If no &lt;code&gt;side-band&lt;/code&gt; capability was specified, the server will stream the entire packfile without multiplexing." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&softcy;  <code>side-band</code>  &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&acy;, &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&vcy;&acy;&tcy;&softcy; &vcy;&iecy;&scy;&softcy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; &bcy;&iecy;&zcy; &mcy;&ucy;&lcy;&softcy;&tcy;&icy;&pcy;&lcy;&iecy;&kcy;&scy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_pushing_data_to_a_server"><span data-i18n="3bdb714db45f17856a5d4df6711339ff82c95e4fb38b2a84eb014a8d380b2c4b/cc" data-source="Pushing data to a server" onmousemove="i18n(this)">&Pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&acy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;</span></h2> <div> <p><span data-i18n="d2cb8b11861e7ef8f81c3b48220acf67765b5f129195ca023d7e8d21aed7bdde/e3" data-source="Pushing data to a server will invoke the &lt;code&gt;receive-pack&lt;/code&gt; process on the server, which will allow the client to tell it which references it should update and then send all the data the server will need for those new references to be complete. Once all the data is received and validated, the server will then update its references to what the client specified." onmousemove="i18n(this)">&Ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&acy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &vcy;&ycy;&zcy;&ocy;&vcy;&iecy;&tcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;  <code>receive-pack</code>  &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&iecy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&icy;&tcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ucy; &scy;&ocy;&ocy;&bcy;&shchcy;&icy;&tcy;&softcy; &iecy;&mcy;&ucy;, &kcy;&acy;&kcy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &iecy;&mcy;&ucy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy;, &acy; &zcy;&acy;&tcy;&iecy;&mcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy; &vcy;&scy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &pcy;&ocy;&tcy;&rcy;&iecy;&bcy;&ucy;&yucy;&tcy;&scy;&yacy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ucy; &dcy;&lcy;&yacy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&icy;&yacy; &ecy;&tcy;&icy;&khcy; &ncy;&ocy;&vcy;&ycy;&khcy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;. &Kcy;&acy;&kcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy;&scy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&ycy; &icy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&iecy;&ncy;&ycy;, &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy; &scy;&vcy;&ocy;&icy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &vcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&icy;&icy; &scy; &tcy;&iecy;&mcy;, &chcy;&tcy;&ocy; &ucy;&kcy;&acy;&zcy;&acy;&lcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_authentication"><span data-i18n="66880d2d8216260d201917a72eb245440ef18ba9b54c070ee39aa4c343ae126f/eb" data-source="Authentication" onmousemove="i18n(this)">Authentication</span></h2> <div> <p><span data-i18n="68eea0472a97f962b033a14cc1da13c6412d8166b729cb3d8cedf5a86962a1f7/96" data-source="The protocol itself contains no authentication mechanisms. That is to be handled by the transport, such as SSH, before the &lt;code&gt;receive-pack&lt;/code&gt; process is invoked. If &lt;code&gt;receive-pack&lt;/code&gt; is configured over the Git transport, those repositories will be writable by anyone who can access that port (9418) as that transport is unauthenticated." onmousemove="i18n(this)">&Scy;&acy;&mcy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy; &ncy;&iecy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&tcy; &mcy;&iecy;&khcy;&acy;&ncy;&icy;&zcy;&mcy;&ocy;&vcy; &acy;&ucy;&tcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&icy;. &Ecy;&tcy;&ocy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ocy; &bcy;&ycy;&tcy;&softcy; &ocy;&bcy;&rcy;&acy;&bcy;&ocy;&tcy;&acy;&ncy;&ocy; &tcy;&rcy;&acy;&ncy;&scy;&pcy;&ocy;&rcy;&tcy;&ocy;&mcy;, &ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy; SSH, &dcy;&ocy; &vcy;&ycy;&zcy;&ocy;&vcy;&acy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;  <code>receive-pack</code> . &IEcy;&scy;&lcy;&icy;  <code>receive-pack</code>  &ncy;&acy;&scy;&tcy;&rcy;&ocy;&iecy;&ncy; &ncy;&acy; &tcy;&rcy;&acy;&ncy;&scy;&pcy;&ocy;&rcy;&tcy;  Git , &ecy;&tcy;&icy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy; &bcy;&ucy;&dcy;&ucy;&tcy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy; &dcy;&lcy;&yacy; &zcy;&acy;&pcy;&icy;&scy;&icy; &lcy;&yucy;&bcy;&ocy;&mcy;&ucy;, &kcy;&tcy;&ocy; &icy;&mcy;&iecy;&iecy;&tcy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy; &kcy; &ecy;&tcy;&ocy;&mcy;&ucy; &pcy;&ocy;&rcy;&tcy;&ucy; (9418), &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &ecy;&tcy;&ocy;&tcy; &tcy;&rcy;&acy;&ncy;&scy;&pcy;&ocy;&rcy;&tcy; &ncy;&iecy; &acy;&ucy;&tcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&tscy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_reference_discovery_2"><span data-i18n="d1a44a68d5d3cb901eb37d35679caeb9a126b223c40c36649700cd720e784917/65" data-source="Reference discovery" onmousemove="i18n(this)">Reference discovery</span></h2> <div> <p><span data-i18n="acc69cd54925604b64fade93aaf11748e4bef1ee0f74402e39a7fa93a0c7843e/67" data-source="The reference discovery phase is done nearly the same way as it is in the fetching protocol. Each reference obj-id and name on the server is sent in packet-line format to the client, followed by a flush-pkt. The only real difference is that the capability listing is different - the only possible values are &lt;code&gt;report-status&lt;/code&gt;, &lt;code&gt;report-status-v2&lt;/code&gt;, &lt;code&gt;delete-refs&lt;/code&gt;, &lt;code&gt;ofs-delta&lt;/code&gt;, &lt;code&gt;atomic&lt;/code&gt; and &lt;code&gt;push-options&lt;/code&gt;." onmousemove="i18n(this)">&Ecy;&tcy;&acy;&pcy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &pcy;&ocy;&chcy;&tcy;&icy; &tcy;&acy;&kcy; &zhcy;&iecy;, &kcy;&acy;&kcy; &icy; &vcy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&iecy; &vcy;&ycy;&bcy;&ocy;&rcy;&kcy;&icy;. &Kcy;&acy;&zhcy;&dcy;&ycy;&jcy; &scy;&scy;&ycy;&lcy;&ocy;&chcy;&ncy;&ycy;&jcy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy; &icy; &icy;&mcy;&yacy; &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&iecy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;&ucy; &vcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy;, &zcy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&mcy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &fcy;&lcy;&iecy;&shcy;-&pcy;&kcy;&tcy;. &IEcy;&dcy;&icy;&ncy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ocy;&iecy; &rcy;&iecy;&acy;&lcy;&softcy;&ncy;&ocy;&iecy; &ocy;&tcy;&lcy;&icy;&chcy;&icy;&iecy; &scy;&ocy;&scy;&tcy;&ocy;&icy;&tcy; &vcy; &tcy;&ocy;&mcy;, &chcy;&tcy;&ocy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&iecy;&jcy; &ocy;&tcy;&lcy;&icy;&chcy;&acy;&iecy;&tcy;&scy;&yacy; &mdash; &iecy;&dcy;&icy;&ncy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ycy;&iecy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ycy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &mdash;  <code>report-status</code> ,  <code>report-status-v2</code> ,  <code>delete-refs</code> ,  <code>ofs-delta</code> ,  <code>atomic</code>  &icy;  <code>push-options</code> .</span></p> </div> <h2 class="text-body-emphasis"  id="_reference_update_request_and_packfile_transfer"><span data-i18n="c745d6527a18450ef69a86a2b5b713ab3f63a7c82da00fccb019776d7b11f45c/32" data-source="Reference update request and packfile transfer" onmousemove="i18n(this)">&Zcy;&acy;&pcy;&rcy;&ocy;&scy; &ecy;&tcy;&acy;&lcy;&ocy;&ncy;&ncy;&ocy;&gcy;&ocy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &icy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&acy; &pcy;&acy;&kcy;&fcy;&acy;&jcy;&lcy;&acy;</span></h2> <div> <p><span data-i18n="77ffccdfe167e3284c0d8ac502a5a0821baa3877a8f68548fc25cc7a7d394987/4e" data-source="Once the client knows what references the server is at, it can send a list of reference update requests. For each reference on the server that it wants to update, it sends a line listing the obj-id currently on the server, the obj-id the client would like to update it to and the name of the reference." onmousemove="i18n(this)">&Kcy;&acy;&kcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &ucy;&zcy;&ncy;&acy;&iecy;&tcy;, &pcy;&ocy; &kcy;&acy;&kcy;&icy;&mcy; &scy;&scy;&ycy;&lcy;&kcy;&acy;&mcy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;, &ocy;&ncy; &mcy;&ocy;&zhcy;&iecy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&ocy;&vcy; &ncy;&acy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;. &Dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&iecy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ucy;&yucy; &ocy;&ncy; &khcy;&ocy;&chcy;&iecy;&tcy; &ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy;, &ocy;&ncy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&tcy;&rcy;&ocy;&kcy;&ucy; &scy;&ocy; &scy;&pcy;&icy;&scy;&kcy;&ocy;&mcy; obj-id, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &vcy; &dcy;&acy;&ncy;&ncy;&ycy;&jcy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&iecy;, obj-id, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &khcy;&ocy;&tcy;&iecy;&lcy; &bcy;&ycy; &ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy;, &icy; &icy;&mcy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy;.</span></p> <p><span data-i18n="3d70cfabcc90c40da4e216e24f543c661e0034d2ac207533df261a03ca3bc452/16" data-source="This list is followed by a flush-pkt." onmousemove="i18n(this)">&Zcy;&acy; &ecy;&tcy;&icy;&mcy; &scy;&pcy;&icy;&scy;&kcy;&ocy;&mcy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &fcy;&lcy;&iecy;&shcy;-&pcy;&kcy;&tcy;.</span></p> <div> <div> <pre class="hljs language-sql">  <span class="hljs-keyword">update</span><span class="hljs-operator">-</span>requests   <span class="hljs-operator">=</span>  <span class="hljs-operator">*</span>shallow ( command<span class="hljs-operator">-</span>list <span class="hljs-operator">|</span> push<span class="hljs-operator">-</span>cert )

  shallow           <span class="hljs-operator">=</span>  PKT<span class="hljs-operator">-</span>LINE(&quot;shallow&quot; SP obj<span class="hljs-operator">-</span>id)

  command<span class="hljs-operator">-</span>list      <span class="hljs-operator">=</span>  PKT<span class="hljs-operator">-</span>LINE(command NUL capability<span class="hljs-operator">-</span>list)
                       <span class="hljs-operator">*</span>PKT<span class="hljs-operator">-</span>LINE(command)
                       flush<span class="hljs-operator">-</span>pkt

  command           <span class="hljs-operator">=</span>  <span class="hljs-keyword">create</span> <span class="hljs-operator">/</span> <span class="hljs-keyword">delete</span> <span class="hljs-operator">/</span> <span class="hljs-keyword">update</span>
  <span class="hljs-keyword">create</span>            <span class="hljs-operator">=</span>  zero<span class="hljs-operator">-</span>id SP <span class="hljs-keyword">new</span><span class="hljs-operator">-</span>id  SP name
  <span class="hljs-keyword">delete</span>            <span class="hljs-operator">=</span>  <span class="hljs-keyword">old</span><span class="hljs-operator">-</span>id  SP zero<span class="hljs-operator">-</span>id SP name
  <span class="hljs-keyword">update</span>            <span class="hljs-operator">=</span>  <span class="hljs-keyword">old</span><span class="hljs-operator">-</span>id  SP <span class="hljs-keyword">new</span><span class="hljs-operator">-</span>id  SP name

  <span class="hljs-keyword">old</span><span class="hljs-operator">-</span>id            <span class="hljs-operator">=</span>  obj<span class="hljs-operator">-</span>id
  <span class="hljs-keyword">new</span><span class="hljs-operator">-</span>id            <span class="hljs-operator">=</span>  obj<span class="hljs-operator">-</span>id

  push<span class="hljs-operator">-</span>cert         <span class="hljs-operator">=</span> PKT<span class="hljs-operator">-</span>LINE(&quot;push-cert&quot; NUL capability<span class="hljs-operator">-</span>list LF)
                      PKT<span class="hljs-operator">-</span>LINE(&quot;certificate version 0.1&quot; LF)
                      PKT<span class="hljs-operator">-</span>LINE(&quot;pusher&quot; SP ident LF)
                      PKT<span class="hljs-operator">-</span>LINE(&quot;pushee&quot; SP url LF)
                      PKT<span class="hljs-operator">-</span>LINE(&quot;nonce&quot; SP nonce LF)
                      <span class="hljs-operator">*</span>PKT<span class="hljs-operator">-</span>LINE(&quot;push-option&quot; SP push<span class="hljs-operator">-</span>option LF)
                      PKT<span class="hljs-operator">-</span>LINE(LF)
                      <span class="hljs-operator">*</span>PKT<span class="hljs-operator">-</span>LINE(command LF)
                      <span class="hljs-operator">*</span>PKT<span class="hljs-operator">-</span>LINE(gpg<span class="hljs-operator">-</span>signature<span class="hljs-operator">-</span>lines LF)
                      PKT<span class="hljs-operator">-</span>LINE(&quot;push-cert-end&quot; LF)

  push<span class="hljs-operator">-</span>option       <span class="hljs-operator">=</span>  <span class="hljs-number">1</span><span class="hljs-operator">*</span>( VCHAR <span class="hljs-operator">|</span> SP )</pre> </div> </div> <p><span data-i18n="0a577c7ca3089072b57137bfb2d746dca9bb3a3700142d8f7ee8eab3eb81fead/8e" data-source="If the server has advertised the &lt;code&gt;push-options&lt;/code&gt; capability and the client has specified &lt;code&gt;push-options&lt;/code&gt; as part of the capability list above, the client then sends its push options followed by a flush-pkt." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &ocy;&bcy;&hardcy;&yacy;&vcy;&icy;&lcy; &ocy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&icy;  <code>push-options</code> , &acy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &ucy;&kcy;&acy;&zcy;&acy;&lcy;  <code>push-options</code>  &kcy;&acy;&kcy; &chcy;&acy;&scy;&tcy;&softcy; &pcy;&rcy;&icy;&vcy;&iecy;&dcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &vcy;&ycy;&shcy;&iecy; &scy;&pcy;&icy;&scy;&kcy;&acy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&iecy;&jcy;, &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &zcy;&acy;&tcy;&iecy;&mcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &scy;&vcy;&ocy;&icy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; push, &zcy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&mcy;&icy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &fcy;&lcy;&iecy;&shcy;-pkt.</span></p> <div> <div> <pre class="hljs language-ini">  <span class="hljs-attr">push-options</span>      =  *PKT-LINE(push-option) flush-pkt</pre> </div> </div> <p><span data-i18n="bfa1c7195cced0f3ca9dfdc403e8da870b00d72e6cc63e782237dab404f5b1fa/47" data-source="For backwards compatibility with older Git servers, if the client sends a push cert and push options, it MUST send its push options both embedded within the push cert and after the push cert. (Note that the push options within the cert are prefixed, but the push options after the cert are not.) Both these lists MUST be the same, modulo the prefix." onmousemove="i18n(this)">&Dcy;&lcy;&yacy; &ocy;&bcy;&rcy;&acy;&tcy;&ncy;&ocy;&jcy; &scy;&ocy;&vcy;&mcy;&iecy;&scy;&tcy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &scy;&ocy; &scy;&tcy;&acy;&rcy;&ycy;&mcy;&icy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&acy;&mcy;&icy;  Git , &iecy;&scy;&lcy;&icy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; push-&scy;&iecy;&rcy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy; &icy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; push-&ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&jcy;, &ocy;&ncy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy; &scy;&vcy;&ocy;&icy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; push-&ucy;&vcy;&iecy;&dcy;&ocy;&mcy;&lcy;&iecy;&ncy;&icy;&jcy; &kcy;&acy;&kcy; &vcy;&scy;&tcy;&rcy;&ocy;&iecy;&ncy;&ncy;&ycy;&iecy; &vcy; push-&scy;&iecy;&rcy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;, &tcy;&acy;&kcy; &icy; &pcy;&ocy;&scy;&lcy;&iecy; &ncy;&iecy;&gcy;&ocy;. (&Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; push &vcy; &scy;&iecy;&rcy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&iecy; &icy;&mcy;&iecy;&yucy;&tcy; &pcy;&rcy;&iecy;&fcy;&icy;&kcy;&scy;, &acy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; push &pcy;&ocy;&scy;&lcy;&iecy; &scy;&iecy;&rcy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&acy; &mdash; &ncy;&iecy;&tcy;.) &Ocy;&bcy;&acy; &ecy;&tcy;&icy;&khcy; &scy;&pcy;&icy;&scy;&kcy;&acy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Ycy; &bcy;&ycy;&tcy;&softcy; &ocy;&dcy;&icy;&ncy;&acy;&kcy;&ocy;&vcy;&ycy;&mcy;&icy; &pcy;&ocy; &mcy;&ocy;&dcy;&ucy;&lcy;&yucy; &pcy;&rcy;&iecy;&fcy;&icy;&kcy;&scy;&acy;.</span></p> <p><span data-i18n="d922cda3030b7345d5e6293905206c91e1e09c185b4738780b493ebb385139fc/de" data-source="After that the packfile that should contain all the objects that the server will need to complete the new references will be sent." onmousemove="i18n(this)">&Pcy;&ocy;&scy;&lcy;&iecy; &ecy;&tcy;&ocy;&gcy;&ocy; &bcy;&ucy;&dcy;&iecy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&tcy;&softcy; &vcy;&scy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &pcy;&ocy;&ncy;&acy;&dcy;&ocy;&bcy;&yacy;&tcy;&scy;&yacy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&ucy; &dcy;&lcy;&yacy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&icy;&yacy; &ncy;&ocy;&vcy;&ycy;&khcy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;.</span></p> <div> <div> <pre class="hljs language-ini">  <span class="hljs-attr">packfile</span>          =  <span class="hljs-string">&quot;PACK&quot;</span> <span class="hljs-number">28</span>*(OCTET)</pre> </div> </div> <p><span data-i18n="795ffc392a1dd12dd91dd1b71d71557b01c7c8c9bccdbaed348558d88e77c5fe/6a" data-source="If the receiving end does not support delete-refs, the sending end MUST NOT ask for delete command." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&yucy;&shchcy;&acy;&yacy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&acy; &ncy;&iecy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&iecy;&tcy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &ncy;&acy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&iecy;, &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&yucy;&shchcy;&acy;&yacy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&acy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Acy; &zcy;&acy;&pcy;&rcy;&acy;&shcy;&icy;&vcy;&acy;&tcy;&softcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&yacy;.</span></p> <p><span data-i18n="fa729861a3a447a53931499c86ecd0dbb380cecabf550c924ef480456a857537/7a" data-source="If the receiving end does not support push-cert, the sending end MUST NOT send a push-cert command. When a push-cert command is sent, command-list MUST NOT be sent; the commands recorded in the push certificate is used instead." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&yucy;&shchcy;&acy;&yacy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&acy; &ncy;&iecy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&iecy;&tcy; push-cert, &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&yucy;&shchcy;&acy;&yacy; &scy;&tcy;&ocy;&rcy;&ocy;&ncy;&acy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&Ncy;&Acy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy; push-cert. &Pcy;&rcy;&icy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&iecy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; push-cert &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy;&scy;&yacy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;; &Vcy;&mcy;&iecy;&scy;&tcy;&ocy; &ecy;&tcy;&ocy;&gcy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy;&scy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;, &zcy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ycy;&iecy; &vcy; push-&scy;&iecy;&rcy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&iecy;.</span></p> <p><span data-i18n="eae06f7d12c9e1bc144e33f452cfd43d690575ef6def066627da667812351599/bc" data-source="The packfile MUST NOT be sent if the only command used is &lt;code&gt;delete&lt;/code&gt;." onmousemove="i18n(this)">&Pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; &Ncy;&IEcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy;&scy;&yacy;, &iecy;&scy;&lcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &iecy;&dcy;&icy;&ncy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&acy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &mdash;  <code>delete</code> .</span></p> <p><span data-i18n="62ab07e3bba96f33472ab3efc2548ef0200216aa11769b8178baef9a54a6419e/1c" data-source="A packfile MUST be sent if either create or update command is used, even if the server already has all the necessary objects. In this case the client MUST send an empty packfile. The only time this is likely to happen is if the client is creating a new branch or a tag that points to an existing obj-id." onmousemove="i18n(this)">&Pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &bcy;&ycy;&tcy;&softcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&iecy;&ncy;, &iecy;&scy;&lcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yacy; &icy;&lcy;&icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy;, &dcy;&acy;&zhcy;&iecy; &iecy;&scy;&lcy;&icy; &ncy;&acy; &scy;&iecy;&rcy;&vcy;&iecy;&rcy;&iecy; &ucy;&zhcy;&iecy; &iecy;&scy;&tcy;&softcy; &vcy;&scy;&iecy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ycy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy;. &Vcy; &ecy;&tcy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &Dcy;&Ocy;&Lcy;&ZHcy;&IEcy;&Ncy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&softcy; &pcy;&ucy;&scy;&tcy;&ocy;&jcy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy;. &Ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&iecy;&tcy; &pcy;&rcy;&ocy;&icy;&zcy;&ocy;&jcy;&tcy;&icy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy; &tcy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy;, &iecy;&scy;&lcy;&icy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy; &scy;&ocy;&zcy;&dcy;&acy;&iecy;&tcy; &ncy;&ocy;&vcy;&ucy;&yucy; &vcy;&iecy;&tcy;&kcy;&ucy; &icy;&lcy;&icy; &tcy;&iecy;&gcy;, &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&yucy;&shchcy;&icy;&jcy; &ncy;&acy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&jcy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;.</span></p> <p><span data-i18n="915eaef081ee2e0ba19776bd17108a4f20bc9c7bcda0da64f6558b0b74ef3ab1/11" data-source="The server will receive the packfile, unpack it, then validate each reference that is being updated that it hasn&amp;rsquo;t changed while the request was being processed (the obj-id is still the same as the old-id), and it will run any update hooks to make sure that the update is acceptable. If all of that is fine, the server will then update the references." onmousemove="i18n(this)">&Scy;&iecy;&rcy;&vcy;&iecy;&rcy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&tcy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy;, &rcy;&acy;&scy;&pcy;&acy;&kcy;&ucy;&iecy;&tcy; &iecy;&gcy;&ocy;, &zcy;&acy;&tcy;&iecy;&mcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&icy;&tcy; &kcy;&acy;&zhcy;&dcy;&ucy;&yucy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&mcy;&ucy;&yucy; &scy;&scy;&ycy;&lcy;&kcy;&ucy; &ncy;&acy; &pcy;&rcy;&iecy;&dcy;&mcy;&iecy;&tcy; &tcy;&ocy;&gcy;&ocy;, &chcy;&tcy;&ocy; &ocy;&ncy;&acy; &ncy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&lcy;&acy;&scy;&softcy; &vcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; &ocy;&bcy;&rcy;&acy;&bcy;&ocy;&tcy;&kcy;&icy; &zcy;&acy;&pcy;&rcy;&ocy;&scy;&acy; (obj-id &ocy;&scy;&tcy;&acy;&iecy;&tcy;&scy;&yacy; &tcy;&acy;&kcy;&icy;&mcy; &zhcy;&iecy;, &kcy;&acy;&kcy; &icy; &scy;&tcy;&acy;&rcy;&ycy;&jcy;-id), &icy; &ocy;&ncy; &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&scy;&yacy;. &lcy;&yucy;&bcy;&ycy;&iecy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&jcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&bcy;&iecy;&dcy;&icy;&tcy;&softcy;&scy;&yacy;, &chcy;&tcy;&ocy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &pcy;&rcy;&icy;&iecy;&mcy;&lcy;&iecy;&mcy;&ocy;. &IEcy;&scy;&lcy;&icy; &vcy;&scy;&iecy; &vcy; &pcy;&ocy;&rcy;&yacy;&dcy;&kcy;&iecy;, &scy;&iecy;&rcy;&vcy;&iecy;&rcy; &ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_push_certificate"><span data-i18n="fc7d99b4db0fab38f4c58b0af703185429bbd05e9403d11ff3aea70908f5b3d2/59" data-source="Push certificate" onmousemove="i18n(this)">Push certificate</span></h2> <div> <p><span data-i18n="6ed0152625d976dcb4919333f07d1b58444162f100cd988ee1c6ed4e9ddb0b9a/f4" data-source="A push certificate begins with a set of header lines. After the header and an empty line, the protocol commands follow, one per line. Note that the trailing LF in push-cert PKT-LINEs is &lt;code&gt;not&lt;/code&gt; optional; it must be present." onmousemove="i18n(this)">Push-&scy;&iecy;&rcy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy; &ncy;&acy;&chcy;&icy;&ncy;&acy;&iecy;&tcy;&scy;&yacy; &scy; &ncy;&acy;&bcy;&ocy;&rcy;&acy; &scy;&tcy;&rcy;&ocy;&kcy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&acy;. &Pcy;&ocy;&scy;&lcy;&iecy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&acy; &icy; &pcy;&ucy;&scy;&tcy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&tcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy;&acy;, &pcy;&ocy; &ocy;&dcy;&ncy;&ocy;&jcy; &vcy; &scy;&tcy;&rcy;&ocy;&kcy;&iecy;. &Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;, &chcy;&tcy;&ocy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&acy;&yucy;&shchcy;&icy;&jcy; LF &vcy; PKT-LINE push-cert &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &ncy;&iecy;&ocy;&bcy;&yacy;&zcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&mcy;  <code>not</code> ; &ocy;&ncy;&ocy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ocy; &pcy;&rcy;&icy;&scy;&ucy;&tcy;&scy;&tcy;&vcy;&ocy;&vcy;&acy;&tcy;&softcy;.</span></p> <p><span data-i18n="c80da01830575fb4b499bd087ebd452c8d8211251415d1301b14be57f3a91d5c/f9" data-source="Currently, the following header fields are defined:" onmousemove="i18n(this)">&Vcy; &ncy;&acy;&scy;&tcy;&ocy;&yacy;&shchcy;&iecy;&iecy; &vcy;&rcy;&iecy;&mcy;&yacy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ycy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&iecy; &pcy;&ocy;&lcy;&yacy; &zcy;&acy;&gcy;&ocy;&lcy;&ocy;&vcy;&kcy;&acy;:</span></p> <div> <dl> <dt id="Documentation/gitprotocol-pack.txt-codepushercodeident"> <span data-i18n="3375b4671d255202d615bf2d66c804e137c71be59e9555ac242f6d6543a0a3e0/a5" data-source="&lt;code&gt;pusher&lt;/code&gt; ident" onmousemove="i18n(this)"><code>pusher</code> ident</span></dt> <dd> <p><span data-i18n="51fa8eb85ceb908d03401abc2683d427065448891dc975628994af67700c1c59/d5" data-source="Identify the GPG key in &amp;quot;Human Readable Name &amp;lt;email@address&amp;gt;&amp;quot; format." onmousemove="i18n(this)">&Ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&icy;&tcy;&iecy; &kcy;&lcy;&yucy;&chcy; GPG &vcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy;  &quot;Human Readable Name &lt;email@address&gt;&quot; .</span></p> </dd> <dt id="Documentation/gitprotocol-pack.txt-codepusheecodeurl"> <span data-i18n="d4e7c1ed8f9f21b68ef1880bc199572dc1cf30f99b371082a05695f250bcf6b4/f5" data-source="&lt;code&gt;pushee&lt;/code&gt; url" onmousemove="i18n(this)"><code>pushee</code> url</span></dt> <dd> <p><span data-i18n="0d7ef7845f6488ce31fdfd455c6f395c617ef934dae4f3bd799f8e6a63749621/2b" data-source="The repository URL (anonymized, if the URL contains authentication material) the user who ran &lt;code&gt;git push&lt;/code&gt; intended to push into." onmousemove="i18n(this)">URL-&acy;&dcy;&rcy;&iecy;&scy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy; (&acy;&ncy;&ocy;&ncy;&icy;&mcy;&ncy;&ycy;&jcy;, &iecy;&scy;&lcy;&icy; URL-&acy;&dcy;&rcy;&iecy;&scy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&tcy; &mcy;&acy;&tcy;&iecy;&rcy;&icy;&acy;&lcy;&ycy; &dcy;&lcy;&yacy; &acy;&ucy;&tcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&icy;), &vcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &ncy;&acy;&mcy;&iecy;&rcy;&iecy;&vcy;&acy;&lcy;&scy;&yacy; &vcy;&vcy;&iecy;&scy;&tcy;&icy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;, &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&vcy;&shcy;&icy;&jcy;  <code>git push</code> .</span></p> </dd> <dt id="Documentation/gitprotocol-pack.txt-codenoncecodenonce"> <span data-i18n="395db1a09cd8b907db1aca3b32540ffb39577709fc38d6d1159c8825c95684e1/9e" data-source="&lt;code&gt;nonce&lt;/code&gt; nonce" onmousemove="i18n(this)"><code>nonce</code> nonce</span></dt> <dd> <p><span data-i18n="233e24f52158f4e4ffe493e1b525135e6b01c4591af55ea8c3a93eea30593912/3d" data-source="The &lt;code&gt;nonce&lt;/code&gt; string the receiving repository asked the pushing user to include in the certificate, to prevent replay attacks." onmousemove="i18n(this)">&Scy;&tcy;&rcy;&ocy;&kcy;&ucy;  <code>nonce</code>  &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&yucy;&shchcy;&icy;&jcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy; &pcy;&ocy;&pcy;&rcy;&ocy;&scy;&icy;&lcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&yucy;&shchcy;&iecy;&gcy;&ocy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy; &vcy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy;&softcy; &vcy; &scy;&iecy;&rcy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&tcy;&icy;&tcy;&softcy; &acy;&tcy;&acy;&kcy;&icy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy;&gcy;&ocy; &vcy;&ocy;&scy;&pcy;&rcy;&ocy;&icy;&zcy;&vcy;&iecy;&dcy;&iecy;&ncy;&icy;&yacy;.</span></p> </dd> </dl> </div> <p><span data-i18n="ae4f5a3df80c14c8204f5bad29da31b1b64f66f8785bcf6721488d0cce7d69c2/01" data-source="The GPG signature lines are a detached signature for the contents recorded in the push certificate before the signature block begins. The detached signature is used to certify that the commands were given by the pusher, who must be the signer." onmousemove="i18n(this)">&Scy;&tcy;&rcy;&ocy;&kcy;&icy; &pcy;&ocy;&dcy;&pcy;&icy;&scy;&icy; GPG &pcy;&rcy;&iecy;&dcy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&yucy;&tcy; &scy;&ocy;&bcy;&ocy;&jcy; &ocy;&tcy;&dcy;&iecy;&lcy;&softcy;&ncy;&ucy;&yucy; &pcy;&ocy;&dcy;&pcy;&icy;&scy;&softcy; &dcy;&lcy;&yacy; &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&icy;&mcy;&ocy;&gcy;&ocy;, &zcy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ocy;&gcy;&ocy; &vcy; push-&scy;&iecy;&rcy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&iecy; &dcy;&ocy; &ncy;&acy;&chcy;&acy;&lcy;&acy; &bcy;&lcy;&ocy;&kcy;&acy; &pcy;&ocy;&dcy;&pcy;&icy;&scy;&icy;. &Ocy;&tcy;&dcy;&iecy;&lcy;&softcy;&ncy;&acy;&yacy; &pcy;&ocy;&dcy;&pcy;&icy;&scy;&softcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &pcy;&ocy;&dcy;&tcy;&vcy;&iecy;&rcy;&zhcy;&dcy;&iecy;&ncy;&icy;&yacy; &tcy;&ocy;&gcy;&ocy;, &chcy;&tcy;&ocy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &bcy;&ycy;&lcy;&icy; &dcy;&acy;&ncy;&ycy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&iecy;&lcy;&iecy;&mcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &bcy;&ycy;&tcy;&softcy; &pcy;&ocy;&dcy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&yucy;&shchcy;&icy;&mcy; &lcy;&icy;&tscy;&ocy;&mcy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_report_status"><span data-i18n="22a134925983fdb9953304e19c667ff9f4a60fd8a059208623e103cafbb18f42/d7" data-source="Report status" onmousemove="i18n(this)">Report status</span></h2> <div> <p><span data-i18n="f6aedf76b6569ff684ef6275f5a0f1888d7b3eb95b40ca018585c071a822925c/f5" data-source="After receiving the pack data from the sender, the receiver sends a report if &lt;code&gt;report-status&lt;/code&gt; or &lt;code&gt;report-status-v2&lt;/code&gt; capability is in effect. It is a short listing of what happened in that update. It will first list the status of the packfile unpacking as either &lt;code&gt;unpack ok&lt;/code&gt; or &lt;code&gt;unpack [error]&lt;/code&gt;. Then it will list the status for each of the references that it tried to update. Each line is either &lt;code&gt;ok [refname]&lt;/code&gt; if the update was successful, or &lt;code&gt;ng [refname] [error]&lt;/code&gt; if the update was not." onmousemove="i18n(this)">&Pcy;&ocy;&scy;&lcy;&iecy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &ocy;&tcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&icy;&tcy;&iecy;&lcy;&yacy; &pcy;&ocy;&lcy;&ucy;&chcy;&acy;&tcy;&iecy;&lcy;&softcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&lcy;&yacy;&iecy;&tcy; &ocy;&tcy;&chcy;&iecy;&tcy;, &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &lcy;&icy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&softcy;  <code>report-status</code>  &icy;&lcy;&icy;  <code>report-status-v2</code> . &Ecy;&tcy;&ocy; &kcy;&rcy;&acy;&tcy;&kcy;&icy;&jcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &tcy;&ocy;&gcy;&ocy;, &chcy;&tcy;&ocy; &pcy;&rcy;&ocy;&icy;&zcy;&ocy;&shcy;&lcy;&ocy; &vcy; &ecy;&tcy;&ocy;&mcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&icy;. &Scy;&ncy;&acy;&chcy;&acy;&lcy;&acy; &ocy;&ncy; &ucy;&kcy;&acy;&zhcy;&iecy;&tcy; &scy;&tcy;&acy;&tcy;&ucy;&scy; &rcy;&acy;&scy;&pcy;&acy;&kcy;&ocy;&vcy;&kcy;&icy; &pcy;&acy;&kcy;&ocy;&vcy;&ocy;&chcy;&ncy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy; &kcy;&acy;&kcy;  <code>unpack ok</code>  &icy;&lcy;&icy;  <code>unpack [error]</code> . &Zcy;&acy;&tcy;&iecy;&mcy; &ocy;&ncy; &ocy;&tcy;&ocy;&bcy;&rcy;&acy;&zcy;&icy;&tcy; &scy;&tcy;&acy;&tcy;&ucy;&scy; &kcy;&acy;&zhcy;&dcy;&ocy;&jcy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ucy;&yucy; &ocy;&ncy; &pcy;&ycy;&tcy;&acy;&lcy;&scy;&yacy; &ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy;. &Kcy;&acy;&zhcy;&dcy;&acy;&yacy; &scy;&tcy;&rcy;&ocy;&kcy;&acy; &icy;&mcy;&iecy;&iecy;&tcy; &kcy;&ocy;&dcy;  <code>ok [refname]</code> , &iecy;&scy;&lcy;&icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &pcy;&rcy;&ocy;&shcy;&lcy;&ocy; &ucy;&scy;&pcy;&iecy;&shcy;&ncy;&ocy;, &icy;&lcy;&icy;  <code>ng [refname] [error]</code> , &iecy;&scy;&lcy;&icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &ncy;&iecy; &pcy;&rcy;&ocy;&shcy;&lcy;&ocy;.</span></p> <div> <div> <pre class="hljs language-lua">  report-<span class="hljs-built_in">status</span>     = <span class="hljs-built_in">unpack</span>-<span class="hljs-built_in">status</span>
                      <span class="hljs-number">1</span>*(command-<span class="hljs-built_in">status</span>)
                      <span class="hljs-built_in">flush</span>-pkt

  <span class="hljs-built_in">unpack</span>-<span class="hljs-built_in">status</span>     = PKT-LINE(<span class="hljs-string">&quot;unpack&quot;</span> SP <span class="hljs-built_in">unpack</span>-result)
  <span class="hljs-built_in">unpack</span>-result     = <span class="hljs-string">&quot;ok&quot;</span> / <span class="hljs-built_in">error</span>-msg

  command-<span class="hljs-built_in">status</span>    = command-ok / command-fail
  command-ok        = PKT-LINE(<span class="hljs-string">&quot;ok&quot;</span> SP refname)
  command-fail      = PKT-LINE(<span class="hljs-string">&quot;ng&quot;</span> SP refname SP <span class="hljs-built_in">error</span>-msg)

  <span class="hljs-built_in">error</span>-msg         = <span class="hljs-number">1</span>*(OCTET) ; where <span class="hljs-keyword">not</span> <span class="hljs-string">&quot;ok&quot;</span></pre> </div> </div> <p><span data-i18n="4bddde39c15ceebd653c7eb927af3fac1980af6f70134748fb4642449c0e0319/ac" data-source="The &lt;code&gt;report-status-v2&lt;/code&gt; capability extends the protocol by adding new option lines in order to support reporting of reference rewritten by the &lt;code&gt;proc-receive&lt;/code&gt; hook. The &lt;code&gt;proc-receive&lt;/code&gt; hook may handle a command for a pseudo-reference which may create or update one or more references, and each reference may have different name, different new-oid, and different old-oid." onmousemove="i18n(this)">&Vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&softcy;  <code>report-status-v2</code>  &rcy;&acy;&scy;&shcy;&icy;&rcy;&yacy;&iecy;&tcy; &pcy;&rcy;&ocy;&tcy;&ocy;&kcy;&ocy;&lcy; &zcy;&acy; &scy;&chcy;&iecy;&tcy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &ncy;&ocy;&vcy;&ycy;&khcy; &scy;&tcy;&rcy;&ocy;&kcy; &ocy;&pcy;&tscy;&icy;&jcy; &dcy;&lcy;&yacy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&kcy;&icy; &ocy;&tcy;&chcy;&iecy;&tcy;&ocy;&vcy; &ocy; &scy;&scy;&ycy;&lcy;&kcy;&acy;&khcy;, &pcy;&iecy;&rcy;&iecy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ycy;&khcy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&ocy;&mcy;  <code>proc-receive</code> . &Pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;  <code>proc-receive</code>  &mcy;&ocy;&zhcy;&iecy;&tcy; &ocy;&bcy;&rcy;&acy;&bcy;&acy;&tcy;&ycy;&vcy;&acy;&tcy;&softcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy; &pcy;&scy;&iecy;&vcy;&dcy;&ocy;&scy;&scy;&ycy;&lcy;&kcy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&acy;&yacy; &mcy;&ocy;&zhcy;&iecy;&tcy; &scy;&ocy;&zcy;&dcy;&acy;&vcy;&acy;&tcy;&softcy; &icy;&lcy;&icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&tcy;&softcy; &ocy;&dcy;&ncy;&ucy; &icy;&lcy;&icy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;, &icy; &kcy;&acy;&zhcy;&dcy;&acy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&acy; &mcy;&ocy;&zhcy;&iecy;&tcy; &icy;&mcy;&iecy;&tcy;&softcy; &rcy;&acy;&zcy;&ncy;&ocy;&iecy; &icy;&mcy;&yacy;, &rcy;&acy;&zcy;&ncy;&ycy;&iecy; &ncy;&ocy;&vcy;&ycy;&iecy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy;&ycy; &icy; &rcy;&acy;&zcy;&ncy;&ycy;&iecy; &scy;&tcy;&acy;&rcy;&ycy;&iecy; &icy;&dcy;&iecy;&ncy;&tcy;&icy;&fcy;&icy;&kcy;&acy;&tcy;&ocy;&rcy;&ycy;.</span></p> <div> <div> <pre class="hljs language-lua">  report-<span class="hljs-built_in">status</span>-v2  = <span class="hljs-built_in">unpack</span>-<span class="hljs-built_in">status</span>
                      <span class="hljs-number">1</span>*(command-<span class="hljs-built_in">status</span>-v2)
                      <span class="hljs-built_in">flush</span>-pkt

  <span class="hljs-built_in">unpack</span>-<span class="hljs-built_in">status</span>     = PKT-LINE(<span class="hljs-string">&quot;unpack&quot;</span> SP <span class="hljs-built_in">unpack</span>-result)
  <span class="hljs-built_in">unpack</span>-result     = <span class="hljs-string">&quot;ok&quot;</span> / <span class="hljs-built_in">error</span>-msg

  command-<span class="hljs-built_in">status</span>-v2 = command-ok-v2 / command-fail
  command-ok-v2     = command-ok
                      *option-line

  command-ok        = PKT-LINE(<span class="hljs-string">&quot;ok&quot;</span> SP refname)
  command-fail      = PKT-LINE(<span class="hljs-string">&quot;ng&quot;</span> SP refname SP <span class="hljs-built_in">error</span>-msg)

  <span class="hljs-built_in">error</span>-msg         = <span class="hljs-number">1</span>*(OCTET) ; where <span class="hljs-keyword">not</span> <span class="hljs-string">&quot;ok&quot;</span>

  option-line       = *<span class="hljs-number">1</span>(option-refname)
                      *<span class="hljs-number">1</span>(option-old-oid)
                      *<span class="hljs-number">1</span>(option-new-oid)
                      *<span class="hljs-number">1</span>(option-forced-update)

  option-refname    = PKT-LINE(<span class="hljs-string">&quot;option&quot;</span> SP <span class="hljs-string">&quot;refname&quot;</span> SP refname)
  option-old-oid    = PKT-LINE(<span class="hljs-string">&quot;option&quot;</span> SP <span class="hljs-string">&quot;old-oid&quot;</span> SP obj-id)
  option-new-oid    = PKT-LINE(<span class="hljs-string">&quot;option&quot;</span> SP <span class="hljs-string">&quot;new-oid&quot;</span> SP obj-id)
  option-force      = PKT-LINE(<span class="hljs-string">&quot;option&quot;</span> SP <span class="hljs-string">&quot;forced-update&quot;</span>)</pre> </div> </div> <p><span data-i18n="d27ecb6f826fa98a4f7aaa5b588b126a0622f31cbb3d5feaf10783da751678b8/4c" data-source="Updates can be unsuccessful for a number of reasons. The reference can have changed since the reference discovery phase was originally sent, meaning someone pushed in the meantime. The reference being pushed could be a non-fast-forward reference and the update hooks or configuration could be set to not allow that, etc. Also, some references can be updated while others can be rejected." onmousemove="i18n(this)">&Ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &ncy;&iecy;&ucy;&dcy;&acy;&chcy;&ncy;&ycy;&mcy;&icy; &pcy;&ocy; &rcy;&yacy;&dcy;&ucy; &pcy;&rcy;&icy;&chcy;&icy;&ncy;. &Scy;&scy;&ycy;&lcy;&kcy;&acy; &mcy;&ocy;&gcy;&lcy;&acy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy;&scy;&yacy; &scy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy;&acy; &pcy;&iecy;&rcy;&vcy;&ocy;&ncy;&acy;&chcy;&acy;&lcy;&softcy;&ncy;&ocy;&jcy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&icy; &fcy;&acy;&zcy;&ycy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&iecy;&ncy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&icy;, &chcy;&tcy;&ocy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &kcy;&tcy;&ocy;-&tcy;&ocy; &tcy;&iecy;&mcy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&iecy;&mcy; &ncy;&acy;&zhcy;&acy;&lcy;. &Pcy;&iecy;&rcy;&iecy;&scy;&ycy;&lcy;&acy;&iecy;&mcy;&acy;&yacy; &scy;&scy;&ycy;&lcy;&kcy;&acy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &scy;&scy;&ycy;&lcy;&kcy;&ocy;&jcy; &bcy;&iecy;&zcy; &pcy;&iecy;&rcy;&iecy;&mcy;&ocy;&tcy;&kcy;&icy; &vcy;&pcy;&iecy;&rcy;&iecy;&dcy;, &icy; &pcy;&iecy;&rcy;&iecy;&khcy;&vcy;&acy;&tcy;&chcy;&icy;&kcy;&icy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &icy;&lcy;&icy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&yacy; &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&iecy;&ncy;&ycy; &tcy;&acy;&kcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ncy;&iecy; &dcy;&ocy;&pcy;&ucy;&scy;&kcy;&acy;&tcy;&softcy; &ecy;&tcy;&ocy;&gcy;&ocy;, &icy; &tcy;. &dcy;. &Kcy;&rcy;&ocy;&mcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ycy;, &acy; &dcy;&rcy;&ucy;&gcy;&icy;&iecy; &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy; &ocy;&tcy;&kcy;&lcy;&ocy;&ncy;&iecy;&ncy;&ycy;.</span></p> <p><span data-i18n="a45c925f533f7fbe1ac0f6cef2d9acd8604f3f7c432bd6f3e0943407b6cc7b2a/17" data-source="An example client/server communication might look like this:" onmousemove="i18n(this)">&Pcy;&rcy;&icy;&mcy;&iecy;&rcy; &vcy;&zcy;&acy;&icy;&mcy;&ocy;&dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&yacy; &kcy;&lcy;&icy;&iecy;&ncy;&tcy;/&scy;&iecy;&rcy;&vcy;&iecy;&rcy; &mcy;&ocy;&zhcy;&iecy;&tcy; &vcy;&ycy;&gcy;&lcy;&yacy;&dcy;&iecy;&tcy;&softcy; &tcy;&acy;&kcy;:</span></p> <div> <div> <pre class="hljs language-yaml">   <span class="hljs-attr">S:</span> <span class="hljs-string">006274730d410fcb6603ace96f1dc55ea6196122532d</span> <span class="hljs-string">refs/heads/local\0report-status</span> <span class="hljs-string">delete-refs</span> <span class="hljs-string">ofs-delta\n</span>
   <span class="hljs-attr">S:</span> <span class="hljs-string">003e7d1665144a3a975c05f1f43902ddaf084e784dbe</span> <span class="hljs-string">refs/heads/debug\n</span>
   <span class="hljs-attr">S:</span> <span class="hljs-string">003f74730d410fcb6603ace96f1dc55ea6196122532d</span> <span class="hljs-string">refs/heads/master\n</span>
   <span class="hljs-attr">S:</span> <span class="hljs-string">003d74730d410fcb6603ace96f1dc55ea6196122532d</span> <span class="hljs-string">refs/heads/team\n</span>
   <span class="hljs-attr">S:</span> <span class="hljs-number">0000</span>

   <span class="hljs-attr">C:</span> <span class="hljs-string">00677d1665144a3a975c05f1f43902ddaf084e784dbe</span> <span class="hljs-string">74730d410fcb6603ace96f1dc55ea6196122532d</span> <span class="hljs-string">refs/heads/debug\n</span>
   <span class="hljs-attr">C:</span> <span class="hljs-string">006874730d410fcb6603ace96f1dc55ea6196122532d</span> <span class="hljs-string">5a3f6be755bbb7deae50065988cbfa1ffa9ab68a</span> <span class="hljs-string">refs/heads/master\n</span>
   <span class="hljs-attr">C:</span> <span class="hljs-number">0000</span>
   <span class="hljs-attr">C:</span> [<span class="hljs-string">PACKDATA</span>]

   <span class="hljs-attr">S:</span> <span class="hljs-string">000eunpack</span> <span class="hljs-string">ok\n</span>
   <span class="hljs-attr">S:</span> <span class="hljs-string">0018ok</span> <span class="hljs-string">refs/heads/debug\n</span>
   <span class="hljs-attr">S:</span> <span class="hljs-string">002ang</span> <span class="hljs-string">refs/heads/master</span> <span class="hljs-string">non-fast-forward\n</span></pre> </div> </div> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/gitprotocol-pack">https://git-scm.com/docs/gitprotocol-pack</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                            <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitprotocol-v2.html">
                            gitprotocol v2                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitremote-helpers.html">
                            gitremote helpers                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitrepository-layout.html">
                            gitrepository layout                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitrevisions.html">
                            gitrevisions                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gitsubmodules.html">
                            gitsubmodules                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gittutorial.html">
                            gittutorial                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="gittutorial-2.html">
                            gittutorial 2                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                   <ins class="adsbygoogle"
        style="display:block"
        data-ad-format="autorelaxed"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="7867651344"></ins>
   <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
   </script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="gitprotocol-pack.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>